]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Correctly labels Docker images per branch
authorPedro Lamas <pedrolamas@gmail.com>
Fri, 24 Jul 2020 08:25:58 +0000 (09:25 +0100)
committerPedro Lamas <pedrolamas@gmail.com>
Fri, 24 Jul 2020 08:25:58 +0000 (09:25 +0100)
.github/workflows/dockerhub.yml

index 7b44f9386865461e1e286c96620947a71eca1815..8c277827fc6ba88be36bcdf11066e0fd999f4677 100644 (file)
@@ -18,9 +18,17 @@ jobs:
       - name: login to docker hub\r
         run: |\r
           echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin\r
-      - name: build the image\r
+      - name: build and push the image (master branch)\r
         run: |\r
           docker buildx build \\r
             --push \\r
             --tag neilpang/acme.sh:latest \\r
             --platform linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7,linux/386 .\r
+        if: ${{ github.ref == 'refs/heads/master' }}\r
+      - name: build and push the image (dev branch)\r
+        run: |\r
+          docker buildx build \\r
+            --push \\r
+            --tag neilpang/acme.sh:dev \\r
+            --platform linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7,linux/386 .\r
+        if: ${{ github.ref == 'refs/heads/dev' }}\r