Skip to content

Commit f9cdf7e

Browse files
author
quangnhnhut123
committed
Update pipeline
1 parent 586fbac commit f9cdf7e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build_push_docker.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Push Docker Image
33
on:
44
push:
55
branches:
6-
- awscli_v2_check_connections
6+
- '**'
77

88
jobs:
99
build-and-push:
@@ -33,16 +33,16 @@ jobs:
3333
platforms: linux/amd64,linux/arm64
3434
push: true
3535
tags: |
36-
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPOSITORY }}:check-connections
37-
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPOSITORY }}:check-connections-${{ github.sha }}
36+
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPOSITORY }}:${{ github.ref_name }}
37+
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPOSITORY }}:${{ github.ref_name }}-${{ github.sha }}
3838
3939
- name: Update latest release with Docker image details
4040
env:
4141
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
4242
run: |
4343
release_body="### ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPOSITORY }} image
4444
\`\`\`shell
45-
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPOSITORY }}:check-connections
46-
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPOSITORY }}:check-connections-${{ github.sha }}
45+
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPOSITORY }}:${{ github.ref_name }}
46+
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPOSITORY }}:${{ github.ref_name }}-${{ github.sha }}
4747
\`\`\`"
4848
gh release create v${{ github.run_number }} --notes "$release_body"

0 commit comments

Comments
 (0)