Skip to content

Commit 14dc185

Browse files
authored
Update Sandbox.yml
1 parent 8d5a344 commit 14dc185

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/Sandbox.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)