This commit is contained in:
@@ -64,11 +64,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "$(git rev-parse --short HEAD)"
|
echo "$(git rev-parse --short HEAD)"
|
||||||
echo "$(git describe --tags --abbrev=0 2>/dev/null || echo "none")"
|
echo "$(git describe --tags --abbrev=0 2>/dev/null || echo "none")"
|
||||||
echo "${GITHUB_REF##*/}"
|
|
||||||
|
|
||||||
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
|
||||||
echo "REF_NAME=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Login to Docker Registry
|
- name: Login to Docker Registry
|
||||||
run: |
|
run: |
|
||||||
@@ -76,14 +74,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and Push Docker Image
|
- name: Build and Push Docker Image
|
||||||
id: build-push
|
id: build-push
|
||||||
if: ${{ inputs.version == 'latest' }}
|
# if: ${{ inputs.version == 'latest' }}
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: molvaapp/test_deploy
|
IMAGE_NAME: molvaapp/test_deploy
|
||||||
IMAGE_TAG: ${{ steps.git-metadata.outputs.GIT_SHA }}
|
IMAGE_TAG: ${{ steps.git-metadata.outputs.GIT_SHA }}
|
||||||
CONFIG_FILE: ./build/config/staging.yaml
|
CONFIG_FILE: ./build/config/staging.yaml
|
||||||
run: |
|
run: |
|
||||||
# export IMAGE_TAG=${{ steps.git-metadata.outputs.GIT_TAG != "none" && steps.git-metadata.outputs.GIT_TAG || steps.git-metadata.outputs.GIT_SHA }}
|
# export IMAGE_TAG=${{ steps.git-metadata.outputs.GIT_TAG != "none" && steps.git-metadata.outputs.GIT_TAG || steps.git-metadata.outputs.GIT_SHA }}
|
||||||
|
|
||||||
echo "=== STARTING DOCKER BUILD ==="
|
echo "=== STARTING DOCKER BUILD ==="
|
||||||
echo "Building $IMAGE_NAME:$IMAGE_TAG"
|
echo "Building $IMAGE_NAME:$IMAGE_TAG"
|
||||||
echo "Using config: $CONFIG_FILE"
|
echo "Using config: $CONFIG_FILE"
|
||||||
|
Reference in New Issue
Block a user