mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
add short commit hash for COMMIT build arg
This commit is contained in:
parent
4cba330a71
commit
ee95932f7a
1 changed files with 3 additions and 1 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -67,12 +67,14 @@ jobs:
|
||||||
echo "new-tag=${NEW_TAG}" >> $GITHUB_OUTPUT
|
echo "new-tag=${NEW_TAG}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push Docker Image
|
- name: Build and push Docker Image
|
||||||
|
env:
|
||||||
|
COMMIT: ${{ github.sha }}
|
||||||
run: |
|
run: |
|
||||||
FULL_ECR_URL="${{ env.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ env.ECR_REPO_NAME }}"
|
FULL_ECR_URL="${{ env.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com/${{ env.ECR_REPO_NAME }}"
|
||||||
NEW_TAG="${{ steps.get-latest-tag.outputs.new-tag }}"
|
NEW_TAG="${{ steps.get-latest-tag.outputs.new-tag }}"
|
||||||
|
|
||||||
# define build args for the image
|
# define build args for the image
|
||||||
COMMIT=${{ github.sha }}
|
COMMIT=${COMMIT:0:7}
|
||||||
VERSION=$NEW_TAG
|
VERSION=$NEW_TAG
|
||||||
BUILDNUM=$(git rev-list --count HEAD)
|
BUILDNUM=$(git rev-list --count HEAD)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue