mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
Correctly labels Docker images per branch
This commit is contained in:
parent
f18f4c69f2
commit
67360e93b8
10
.github/workflows/dockerhub.yml
vendored
10
.github/workflows/dockerhub.yml
vendored
@ -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' }}
|
||||
|
Loading…
Reference in New Issue
Block a user