Skip to content

Commit

Permalink
MLPAB-398 - Remove redundant steps and conditions from workflows (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpearce-digital authored Nov 4, 2022
1 parent 0285693 commit 390d5bb
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 29 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/docker_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,4 @@ jobs:
ECR_REPOSITORY: modernising-lpa/app
run: |
docker tag app:latest $ECR_REGISTRY/$ECR_REPOSITORY:${{ inputs.tag }}
if [ ${{ github.head_ref }} == "main" ]; then
docker tag app:latest $ECR_REGISTRY/$ECR_REPOSITORY:main-${{ inputs.tag }}
docker tag app:latest $ECR_REGISTRY/$ECR_REPOSITORY:latest
fi
docker push --all-tags $ECR_REGISTRY/$ECR_REPOSITORY
docker push --all-tags $ECR_REGISTRY/$ECR_REPOSITORY
8 changes: 0 additions & 8 deletions .github/workflows/terraform_account_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Extract branch name
run: |
if [ "${{ github.head_ref }}" == "" ]; then
echo BRANCH_NAME=main >> $GITHUB_ENV
else
echo BRANCH_NAME=${{ github.head_ref }} >> $GITHUB_ENV
fi
id: extract_branch
- uses: unfor19/install-aws-cli-action@v1
- uses: hashicorp/setup-terraform@v2
with:
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/terraform_environment_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Extract branch name
run: |
if [ "${{ github.head_ref }}" == "" ]; then
echo BRANCH_NAME=main >> $GITHUB_ENV
else
echo BRANCH_NAME=${{ github.head_ref }} >> $GITHUB_ENV
fi
id: extract_branch
- uses: unfor19/install-aws-cli-action@v1
- uses: hashicorp/setup-terraform@v2
with:
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/workflow_terraform_environment_cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Extract branch name
run: |
if [ "${{ github.head_ref }}" == "" ]; then
echo BRANCH_NAME=main >> $GITHUB_ENV
else
echo BRANCH_NAME=${{ github.head_ref }} >> $GITHUB_ENV
fi
id: extract_branch
- uses: unfor19/install-aws-cli-action@v1
- uses: hashicorp/setup-terraform@v2
with:
Expand Down

0 comments on commit 390d5bb

Please sign in to comment.