File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,14 @@ 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 :
85- aws-access-key-id : ${{ secrets.AWS_ZDIELAJ_SI_ACCESS_KEY_ID }}
86- aws-secret-access-key : ${{ secrets.AWS_ZDIELAJ_SI_SECRET_ACCESS_KEY }}
88+ aws-access-key-id : ${{ secrets.AWS_GRAPHQL_JUFFALOW_COM_ACCESS_KEY_ID }}
89+ aws-secret-access-key : ${{ secrets.AWS_GRAPHQL_JUFFALOW_COM_SECRET_ACCESS_KEY }}
8790 aws-region : ${{ secrets.AWS_CONTAINER_REGISTRY_REGION }}
8891 - name : Login to Amazon ECR
8992 id : login-ecr
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
You can’t perform that action at this time.
0 commit comments