File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,21 @@ jobs:
3232 echo ::set-output name=TAG::${TAG}
3333 echo ::set-output name=TARGET::${{ secrets.SLACK_WEBHOOK }}
3434 fi
35+ - name : Clean Docker Tag
36+ run : |
37+ RAW_TAG="sandbox-adminer-core:sandbox-1.1.3"
38+
39+ REPO_NAME="${RAW_TAG%%:*}"
40+ TAG_NAME="${RAW_TAG#*:}"
41+ CLEAN_TAG="${TAG_NAME#sandbox-}"
42+
43+ FINAL_TAG="${REPO_NAME}:${CLEAN_TAG}"
44+ echo "Final Docker tag : $FINAL_TAG"
3545 - name : Build the Docker image
3646 env :
3747 LLC_ECR_HOST : ${{ secrets.LLC_ECR_HOST }}
3848 TAG : ${{ steps.vars.outputs.TAG }}
3949 REPOSITORY : ${{ steps.vars.outputs.REPOSITORY }}
4050 run : |
41- docker build . --file Dockerfile --tag ${LLC_ECR_HOST}/$REPOSITORY:$TAG
42- docker push ${LLC_ECR_HOST}/$REPOSITORY:$TAG
51+ docker build . --file Dockerfile --tag ${LLC_ECR_HOST}/$REPOSITORY:$FINAL_TAG
52+ docker push ${LLC_ECR_HOST}/$REPOSITORY:$FINAL_TAG
You can’t perform that action at this time.
0 commit comments