Skip to content

Commit a74cdfe

Browse files
committed
use build and publish from other repo
1 parent f401311 commit a74cdfe

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
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

0 commit comments

Comments
 (0)