Remove branch check and also push latest tag

pull/2/head
DustyP 5 years ago
parent 562ec6acaf
commit 87961c5081

@ -10,7 +10,6 @@ on:
jobs: jobs:
build: build:
if: endsWith(github.ref, 'master') || endsWith(github.ref, 'development')
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
@ -41,3 +40,5 @@ jobs:
run: | run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $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

Loading…
Cancel
Save