Deploy in production #20
This file contains 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: Deploy in production | |
on: | |
push: | |
branches: | |
- prod | |
workflow_dispatch: | |
jobs: | |
build_server: | |
uses: ./.github/workflows/build_server_image.yml | |
secrets: inherit | |
build_webapp: | |
needs: build_server | |
uses: ./.github/workflows/build_web_image.yml | |
secrets: inherit | |
deploy_release: | |
needs: build_webapp | |
uses: ./.github/workflows/create_release.yml | |
secrets: inherit | |
update_sera_app: | |
needs: deploy_release | |
uses: ./.github/workflows/install_sera.yml | |
secrets: inherit | |
notify: | |
needs: deploy_release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Notify production build & published | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
uses: Ilshidur/action-discord@master | |
with: | |
args: "A new release just been created on SERA, images pushed to dockerhub." |