Skip to content

Commit

Permalink
Merge pull request #16 from ministryofjustice/test-dev
Browse files Browse the repository at this point in the history
Only Deploy to Dev
  • Loading branch information
RobLoweMOJ authored Jul 10, 2024
2 parents 989b034 + 3006d8e commit 6016666
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/cd-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Feed Parser Deployment

on:
workflow_dispatch:
push:
branches:
- 'main'

jobs:

deployDev:
name: Dev deploy to ECR
uses: ./.github/workflows/rw-build-image.yaml
secrets:
ecr-role: ${{ secrets.DEV_ECR_ROLE_TO_ASSUME }}
ecr-region: ${{ vars.DEV_ECR_REGION }}
ecr-repo: ${{ vars.DEV_ECR_REPOSITORY }}
avature-feed-username: ${{ secrets.AVATURE_FEED_USERNAME }}
avature-feed-password: ${{ secrets.AVATURE_FEED_PASSWORD }}
2 changes: 1 addition & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- 'main'
- 'main-test'

jobs:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/rw-build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ jobs:
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPOSITORY: ${{ secrets.ecr-repo }}
AVATURE_FEED_USERNAME: ${{ secrets.avature-feed-username }}
AVATURE_FEED_PASSWORD: ${{ secrets.avature-feed-password }}

0 comments on commit 6016666

Please sign in to comment.