Skip to content

Commit 9c75689

Browse files
committed
feat: add Git SHA and image tag to Docker and release workflows
- Enhanced the Docker and release workflows by adding the `GIT_SHA` and `IMAGE_TAG` build arguments, improving traceability and versioning of Docker images during the build and release processes.
1 parent d06525f commit 9c75689

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/docker-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,6 @@ jobs:
5858
BUILD_VERSION=${{ steps.version.outputs.version }}-${{ steps.version.outputs.build_id }}
5959
GIT_BRANCH=${{ github.ref_name }}
6060
GIT_COMMIT=${{ github.sha }}
61+
GIT_SHA=${{ github.sha }}
6162
DOCKER_TAG=${{ steps.version.outputs.version }}-${{ steps.version.outputs.build_id }}
63+
IMAGE_TAG=${{ steps.version.outputs.version }}-${{ steps.version.outputs.build_id }}

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ jobs:
4242
password: ${{ secrets.GITHUB_TOKEN }}
4343
access_token: ${{ secrets.GITHUB_TOKEN }}
4444
github_token: ${{ secrets.GITHUB_TOKEN }}
45-
build-args: |
45+
args: |
4646
BUILD_VERSION={{NEW_VERSION}}
4747
GIT_BRANCH=${{ github.ref_name }}
4848
GIT_COMMIT=${{ github.sha }}
49+
GIT_SHA=${{ github.sha }}
4950
DOCKER_TAG={{NEW_VERSION}}
51+
IMAGE_TAG={{NEW_VERSION}}

0 commit comments

Comments
 (0)