Merge pull request #443 from citizensadvice/dependabot/github_actions… #244
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Dev Deployment | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - develop | |
| jobs: | |
| build: | |
| name: Build Image | |
| runs-on: runs-on | |
| permissions: | |
| id-token: write | |
| contents: read | |
| issues: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Build and push to ECR | |
| uses: citizensadvice/build-and-private-ecr-push-action@ac3a0c4db0275ee5976e3cd41a9ab124a2f880ce | |
| with: | |
| role_arn: "arn:aws:iam::979633842206:role/LocalOfficeSearchApiDeployment" | |
| dockerfile_context: "." | |
| repository_name: local-office-search-api | |
| multiarch_build: "disabled" | |
| prod_image: true | |
| auth_token: ${{ secrets.GITHUB_TOKEN }} | |
| deploy: | |
| name: Deploy dev | |
| needs: | |
| - build | |
| uses: ./.github/workflows/deploy_stage.yml | |
| with: | |
| stage: dev | |
| secrets: inherit |