This commit is contained in:
@@ -64,11 +64,9 @@ jobs:
|
||||
run: |
|
||||
echo "$(git rev-parse --short HEAD)"
|
||||
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_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
|
||||
run: |
|
||||
@@ -76,18 +74,17 @@ jobs:
|
||||
|
||||
- name: Build and Push Docker Image
|
||||
id: build-push
|
||||
if: ${{ inputs.version == 'latest' }}
|
||||
# if: ${{ inputs.version == 'latest' }}
|
||||
env:
|
||||
IMAGE_NAME: molvaapp/test_deploy
|
||||
IMAGE_TAG: ${{ steps.git-metadata.outputs.GIT_SHA }}
|
||||
CONFIG_FILE: ./build/config/staging.yaml
|
||||
run: |
|
||||
# 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 "Building $IMAGE_NAME:$IMAGE_TAG"
|
||||
echo "Using config: $CONFIG_FILE"
|
||||
|
||||
|
||||
# Explicit Docker setup
|
||||
echo "Docker info:"
|
||||
docker info
|
||||
|
Reference in New Issue
Block a user