Skip to content

Commit 809ebe4

Browse files
committed
Fix tag variable for build job
1 parent 247d2f5 commit 809ebe4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ jobs:
7979
- uses: actions/checkout@v2
8080
with:
8181
fetch-depth: 1
82+
- name: Set variables
83+
id: vars
84+
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
8285
- name: Configure AWS credentials
8386
uses: aws-actions/configure-aws-credentials@v1
8487
with:
@@ -92,7 +95,7 @@ jobs:
9295
env:
9396
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
9497
REPOSITORY: express-graphql-example
95-
TAG: ${GITHUB_REF#"refs/tags/"}
98+
TAG: ${{ steps.vars.outputs.tag }}
9699
run: |
97100
docker build -t $REGISTRY/$REPOSITORY:$TAG .
98101
docker push $REGISTRY/$REPOSITORY:$TAG

0 commit comments

Comments
 (0)