Skip to content

Commit 2576563

Browse files
committed
update github actions
1 parent 9c9f36a commit 2576563

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/docker-publish.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,25 @@ jobs:
4141
shell: bash
4242
run: echo "TAG_NAME=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_ENV
4343

44-
- name: Build and push Docker image tag
44+
- name: Build and push Docker image latest
4545
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
4646
with:
4747
push: true
48-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG_NAME }}
48+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
49+
50+
- name: Push Docker image Tag
51+
run: |
52+
docker tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG_NAME }}
53+
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG_NAME }}
4954
if: github.event_name == 'push'
5055

51-
- name: Build and push Docker image latest
56+
- name: Build and push Docker dev image
5257
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
5358
with:
5459
push: true
55-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
60+
build-args: |
61+
dev_build=true
62+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-dev
5663

5764
rancher-upgrade:
5865

0 commit comments

Comments
 (0)