This commit is contained in:
@@ -78,10 +78,16 @@ jobs:
|
|||||||
if: ${{ inputs.version == 'latest' }}
|
if: ${{ inputs.version == 'latest' }}
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: molvaapp/test_deploy
|
IMAGE_NAME: molvaapp/test_deploy
|
||||||
|
CONFIG_FILE: ./build/config/staging.yaml
|
||||||
run: |
|
run: |
|
||||||
IMAGE_TAG=${{ steps.git-metadata.outputs.GIT_TAG != "none" && steps.git-metadata.outputs.GIT_TAG || steps.git-metadata.outputs.GIT_SHA }}
|
IMAGE_TAG=${{ steps.git-metadata.outputs.GIT_TAG != "none" && steps.git-metadata.outputs.GIT_TAG || steps.git-metadata.outputs.GIT_SHA }}
|
||||||
|
|
||||||
docker build -t $IMAGE_NAME:$IMAGE_TAG .
|
docker build \
|
||||||
|
--build-arg BUILD_LDFLAGS="-w -s" \
|
||||||
|
--build-arg CONFIG_FILE_PATH=$CONFIG_FILE \
|
||||||
|
-t $IMAGE_NAME:$IMAGE_TAG \
|
||||||
|
-t $IMAGE_NAME:latest \
|
||||||
|
.
|
||||||
|
|
||||||
docker tag $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:latest
|
docker tag $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:latest
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user