From 87961c50818e2b35561ddc80bbccf8a92e9db2d6 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Sun, 30 Aug 2020 17:57:19 -0800 Subject: [PATCH] Remove branch check and also push latest tag --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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