Skip to content

Commit 15cb457

Browse files
Merge branch 'main' into develop
2 parents b895c63 + 0b76840 commit 15cb457

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/docker-build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,48 @@ jobs:
4848
username: ${{ secrets.DOCKERHUB_USERNAME }}
4949
password: ${{ secrets.DOCKERHUB_TOKEN }}
5050

51+
<<<<<<< HEAD
5152
- name: Build and push
53+
=======
54+
- name: Production Build and push
55+
if: contains(github.ref, "main")
56+
>>>>>>> main
5257
uses: docker/build-push-action@v2
5358
with:
5459
context: .
5560
push: true
61+
<<<<<<< HEAD
5662
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_NAME }}:${{steps.vars.outputs.tag}}
63+
=======
64+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_NAME }}:latest
65+
>>>>>>> main
5766
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
5867
cache-from: type=local,src=/tmp/.buildx-cache
5968
cache-to: type=local,dest=/tmp/.buildx-cache-new
6069

70+
<<<<<<< HEAD
6171
- name: Build and push
72+
=======
73+
- name: Development Build and push
74+
if: contains(github.ref, "develop")
75+
>>>>>>> main
6276
uses: docker/build-push-action@v2
6377
with:
6478
context: .
6579
push: true
80+
<<<<<<< HEAD
6681
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_NAME }}:latest
6782
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
6883
cache-from: type=local,src=/tmp/.buildx-cache
6984
cache-to: type=local,dest=/tmp/.buildx-cache-new
7085

86+
=======
87+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_NAME }}:develop
88+
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
89+
cache-from: type=local,src=/tmp/.buildx-cache
90+
cache-to: type=local,dest=/tmp/.buildx-cache-new
91+
92+
>>>>>>> main
7193
- name: Move cache
7294
run: |
7395
rm -rf /tmp/.buildx-cache

0 commit comments

Comments
 (0)