Skip to content

Commit

Permalink
Fix tag variable for build job
Browse files Browse the repository at this point in the history
  • Loading branch information
juffalow committed Aug 9, 2022
1 parent 247d2f5 commit 809ebe4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Set variables
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -92,7 +95,7 @@ jobs:
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPOSITORY: express-graphql-example
TAG: ${GITHUB_REF#"refs/tags/"}
TAG: ${{ steps.vars.outputs.tag }}
run: |
docker build -t $REGISTRY/$REPOSITORY:$TAG .
docker push $REGISTRY/$REPOSITORY:$TAG

0 comments on commit 809ebe4

Please sign in to comment.