File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 await github.request(`GET /repos/${process.env.GITHUB_REPOSITORY}/environments`);
2626 return environments.map(e => e.name)
2727
28- deploy :
28+ build-and-publish :
2929 runs-on : ubuntu-latest
3030 env :
3131 DOCKER_REPO : ${{ secrets.DEPLOY_DOCKER_REPOSITORY }}
@@ -45,18 +45,16 @@ jobs:
4545 with :
4646 aws-access-key-id : ${{ secrets.DEPLOY_AWS_ACCESS_KEY_ID }}
4747 aws-secret-access-key : ${{ secrets.DEPLOY_AWS_SECRET_ACCESS_KEY }}
48- aws-region : us-east-1
48+ aws-region : eu-west-2
4949
50- - uses : aws-actions/amazon-ecr-login@v2
51- with :
52- registry-type : public
50+ - uses : aws-actions/amazon-ecr-login@v1
5351
54- - run : docker pull $DOCKER_REPO:${GITHUB_REF_NAME} || echo "no current latest image"
52+ - run : docker pull $DOCKER_REPO:latest || echo "no current latest image"
5553
5654 - run : docker build -t $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} .
5755
58- - run : docker tag $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} $DOCKER_REPO:${GITHUB_REF_NAME}
56+ - run : docker tag $DOCKER_REPO:${{ steps.vars.outputs.sha_short }} $DOCKER_REPO:latest
5957
6058 - run : docker push $DOCKER_REPO:${{ steps.vars.outputs.sha_short }}
6159
62- - run : docker push $DOCKER_REPO:${GITHUB_REF_NAME}
60+ - run : docker push $DOCKER_REPO:latest
You can’t perform that action at this time.
0 commit comments