From 984276f83e13f6323138a6567113d53a6ec7bfa0 Mon Sep 17 00:00:00 2001 From: Ben Bridts Date: Thu, 25 Aug 2022 05:07:32 +0200 Subject: [PATCH] feat: Add small improvements to publish.yaml (#220) - remove chmod (when passing to python as a file, this is not needed) - retag instead of rebuild --- .github/workflows/publish.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fe5ba62..c9d2285 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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 \ No newline at end of file + 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 \ No newline at end of file