Skip to content

Commit

Permalink
feat: Add small improvements to publish.yaml (#220)
Browse files Browse the repository at this point in the history
- remove chmod (when passing to python as a file, this is not needed)
- retag instead of rebuild
  • Loading branch information
benbridts authored Aug 25, 2022
1 parent 828f505 commit 984276f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
- name: Check out repo
uses: actions/checkout@v2
- run: |
chmod +x ./mappings/build.py
python3 ./mappings/build.py
shell: bash
- uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -69,7 +68,7 @@ jobs:
run: |
aws ecr-public get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $ECR_REGISTRY
cd ./docker
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:latest .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$VERSION .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$VERSION
docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$VERSION $ECR_REGISTRY/$ECR_REPOSITORY:latest
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$VERSION
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest

0 comments on commit 984276f

Please sign in to comment.