Skip to content

Commit a4a30aa

Browse files
added tag build
1 parent 0dda737 commit a4a30aa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/docker-build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ jobs:
5959
cache-from: type=local,src=/tmp/.buildx-cache
6060
cache-to: type=local,dest=/tmp/.buildx-cache-new
6161

62+
- name: Production Tag Build and push
63+
if: startsWith(github.ref, 'refs/tags/v')
64+
uses: docker/build-push-action@v2
65+
with:
66+
context: .
67+
push: true
68+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_NAME }}:${{ github.event.ref }}
69+
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
70+
cache-from: type=local,src=/tmp/.buildx-cache
71+
cache-to: type=local,dest=/tmp/.buildx-cache-new
72+
6273
- name: Development Build and push
6374
if: ${{ github.ref == 'refs/heads/develop' }}
6475
uses: docker/build-push-action@v2

0 commit comments

Comments
 (0)