diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ace0641..d877232 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,6 @@ on: jobs: build: - if: endsWith(github.ref, 'master') || endsWith(github.ref, 'development') runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job @@ -41,3 +40,5 @@ jobs: run: | docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG + docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:latest + docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest