wip github workflows updates #1
Workflow file for this run
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: Push | ||
|
Check failure on line 1 in .github/workflows/push.yaml
|
||
| env: | ||
| ACRONYM: pcns | ||
| APP_NAME: nr-permitconnect-navigator-service | ||
| NAMESPACE_PREFIX: d9d78e | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| tags: | ||
| - v*.*.* | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| build: | ||
| name: Build & Push | ||
| uses: ./.github/workflows/builder.yaml | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| with: | ||
| context: . | ||
| image_name: ${{ env.APP_NAME }} | ||
| github_username: ${{ github.repository_owner }} | ||
| dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| secrets: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| deploy-dev: | ||
| name: Deploy to Dev | ||
| needs: build | ||
| uses: ./.github/workflows/deployer.yaml | ||
| with: | ||
| app_name: ${{ env.APP_NAME }} | ||
| acronym: ${{ env.ACRONYM }} | ||
| environment: dev | ||
| image_tag: ${{ needs.build.outputs.image_tag }} | ||
| job_name: master | ||
| namespace_prefix: ${{ env.NAMESPACE_PREFIX }} | ||
| namespace_environment: dev | ||
| secrets: | ||
| openshift_server: ${{ secrets.OPENSHIFT_SERVER }} | ||
| openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} | ||
| deploy-test: | ||
| name: Deploy to Test | ||
| needs: | ||
| - build | ||
| - deploy-dev | ||
| uses: ./.github/workflows/deployer.yaml | ||
| with: | ||
| app_name: ${{ env.APP_NAME }} | ||
| acronym: ${{ env.ACRONYM }} | ||
| environment: test | ||
| image_tag: ${{ needs.build.outputs.image_tag }} | ||
| job_name: master | ||
| namespace_prefix: ${{ env.NAMESPACE_PREFIX }} | ||
| namespace_environment: test | ||
| secrets: | ||
| openshift_server: ${{ secrets.OPENSHIFT_SERVER }} | ||
| openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} | ||
| deploy-prod: | ||
| name: Deploy to Prod | ||
| needs: | ||
| - build | ||
| - deploy-dev | ||
| - deploy-test | ||
| uses: ./.github/workflows/deployer.yaml | ||
| with: | ||
| app_name: ${{ env.APP_NAME }} | ||
| acronym: ${{ env.ACRONYM }} | ||
| environment: prod | ||
| image_tag: ${{ needs.build.outputs.image_tag }} | ||
| job_name: master | ||
| namespace_prefix: ${{ env.NAMESPACE_PREFIX }} | ||
| namespace_environment: prod | ||
| secrets: | ||
| openshift_server: ${{ secrets.OPENSHIFT_SERVER }} | ||
| openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} | ||