Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
67360e93
Unverified
Commit
67360e93
authored
Jul 24, 2020
by
Pedro Lamas
Browse files
Correctly labels Docker images per branch
parent
f18f4c69
Changes
1
Hide whitespace changes
Inline
Side-by-side
.github/workflows/dockerhub.yml
View file @
67360e93
...
...
@@ -18,9 +18,17 @@ jobs:
-
name
:
login to docker hub
run
:
|
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
-
name
:
build
the image
-
name
:
build
and push the image (master branch)
run
:
|
docker buildx build \
--push \
--tag neilpang/acme.sh:latest \
--platform linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7,linux/386 .
if
:
${{ github.ref == 'refs/heads/master' }}
-
name
:
build and push the image (dev branch)
run
:
|
docker buildx build \
--push \
--tag neilpang/acme.sh:dev \
--platform linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7,linux/386 .
if
:
${{ github.ref == 'refs/heads/dev' }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment