Browse Source

Correctly labels Docker images per branch

pull/3069/head
Pedro Lamas 4 years ago
parent
commit
67360e93b8
No known key found for this signature in database GPG Key ID: FECF85D164E8482B
  1. 10
      .github/workflows/dockerhub.yml

10
.github/workflows/dockerhub.yml

@ -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…
Cancel
Save