Continuous Deployment #497
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: Continuous Deployment | |
on: | |
push: | |
branches: [ main ] | |
schedule: | |
- cron: "0 11 * * *" # 11:00 Daily | |
workflow_dispatch: | |
jobs: | |
build: | |
uses: ./.github/workflows/docker.yml | |
with: | |
push: true | |
secrets: inherit | |
deployment: | |
needs: [ build ] | |
runs-on: ubuntu-latest | |
environment: | |
name: production | |
url: 'http://syntaqx.io' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: syntaqx/setup-kustomize@v1 | |
- | |
name: Deploy | |
run: |- | |
kustomize edit set image syntaqx/github-flow-example=${{ needs.build.outputs.image }} | |
kustomize build . |