Skip to content

Commit 0eac83e

Browse files
committed
test workflow publish to use branch name
1 parent 05167cf commit 0eac83e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ jobs:
6666

6767
- run: docker build --build-arg DEPLOY_TIME="$(date +%Y-%m-%dT%H:%M:%S)" --build-arg GIT_COMMIT="${{ steps.vars.outputs.sha_short }}" -t $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} -f request-api/Dockerfile .
6868

69-
- run: docker tag $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} $DOCKER_REPO:main
69+
- run: docker tag $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} $DOCKER_REPO:${GITHUB_REF_NAME}
7070

7171
- run: docker push $DOCKER_REPO:${{ steps.vars.outputs.sha_short }}
7272

73-
- run: docker push $DOCKER_REPO:main
73+
- run: docker push $DOCKER_REPO:${GITHUB_REF_NAME}
7474

7575
- uses: aws-actions/configure-aws-credentials@v1
7676
with:
@@ -119,11 +119,11 @@ jobs:
119119

120120
- run: docker build --build-arg DEPLOY_TIME="$(date +%Y-%m-%dT%H:%M:%S)" --build-arg GIT_COMMIT="${{ steps.vars.outputs.sha_short }}" -t $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} -f request-processor/Dockerfile .
121121

122-
- run: docker tag $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} $DOCKER_REPO:main
122+
- run: docker tag $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} $DOCKER_REPO:${GITHUB_REF_NAME}
123123

124124
- run: docker push $DOCKER_REPO:${{ steps.vars.outputs.sha_short }}
125125

126-
- run: docker push $DOCKER_REPO:main
126+
- run: docker push $DOCKER_REPO:${GITHUB_REF_NAME}
127127

128128
- uses: aws-actions/configure-aws-credentials@v1
129129
with:

0 commit comments

Comments
 (0)