This commit is contained in:
@@ -63,7 +63,7 @@ jobs:
|
|||||||
id: git-metadata
|
id: git-metadata
|
||||||
run: |
|
run: |
|
||||||
echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "none")" >> $GITHUB_OUTPUT
|
echo "GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'none')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Login to Docker Registry
|
- name: Login to Docker Registry
|
||||||
run: |
|
run: |
|
||||||
@@ -77,6 +77,7 @@ jobs:
|
|||||||
echo "Building image for ${{ inputs.environment }} environment"
|
echo "Building image for ${{ inputs.environment }} environment"
|
||||||
echo "Git tag : ${{ steps.git-metadata.outputs.GIT_TAG }}"
|
echo "Git tag : ${{ steps.git-metadata.outputs.GIT_TAG }}"
|
||||||
echo "Git sha : ${{ steps.git-metadata.outputs.GIT_SHA }}"
|
echo "Git sha : ${{ steps.git-metadata.outputs.GIT_SHA }}"
|
||||||
|
echo "Image tag : ${{ steps.git-metadata.outputs.GIT_TAG != 'none' && steps.git-metadata.outputs.GIT_TAG || steps.git-metadata.outputs.GIT_SHA }}"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
Reference in New Issue
Block a user