We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 247d2f5 commit 809ebe4Copy full SHA for 809ebe4
.github/workflows/main.yml
@@ -79,6 +79,9 @@ jobs:
79
- uses: actions/checkout@v2
80
with:
81
fetch-depth: 1
82
+ - name: Set variables
83
+ id: vars
84
+ run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
85
- name: Configure AWS credentials
86
uses: aws-actions/configure-aws-credentials@v1
87
@@ -92,7 +95,7 @@ jobs:
92
95
env:
93
96
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
94
97
REPOSITORY: express-graphql-example
- TAG: ${GITHUB_REF#"refs/tags/"}
98
+ TAG: ${{ steps.vars.outputs.tag }}
99
run: |
100
docker build -t $REGISTRY/$REPOSITORY:$TAG .
101
docker push $REGISTRY/$REPOSITORY:$TAG
0 commit comments