forked from syntaqx/github-flow-example
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 736 Bytes
/
Copy pathdeploy.yml
File metadata and controls
34 lines (30 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 .