File tree Expand file tree Collapse file tree 2 files changed +20
-20
lines changed
Expand file tree Collapse file tree 2 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -147,28 +147,10 @@ jobs:
147147 labels : ${{ steps.meta.outputs.labels }}
148148 platforms : linux/amd64,linux/arm64
149149
150- deploy-production :
151- runs-on : ubuntu-latest
152- needs : containerize
153- if : ${{ github.repository_owner == 'OpenShock' && github.repository_owner == 'OpenShock' && github.ref_type == 'branch' && github.event_name != 'pull_request' && github.ref_name == 'master' }}
154- environment : production
155-
156- steps :
157- - uses : actions/checkout@v4
158- with :
159- sparse-checkout : |
160- .github
161-
162- - uses : ./.github/actions/kubernetes-rollout-restart
163- with :
164- apiurl : ${{ secrets.KUBERNETES_APIURL }}
165- token : ${{ secrets.KUBERNETES_TOKEN }}
166- deployments : ${{ vars.DEPLOYMENT_NAMES }}
167-
168150 deploy-staging :
169151 runs-on : ubuntu-latest
170152 needs : containerize
171- if : ${{ github.repository_owner == 'OpenShock' && github.ref_type == 'branch' && github.event_name != 'pull_request' && github.ref_name == 'develop ' }}
153+ if : ${{ github.repository_owner == 'OpenShock' && github.ref_type == 'branch' && github.event_name != 'pull_request' && github.ref_name == 'master ' }}
172154 environment : staging
173155
174156 steps :
@@ -181,4 +163,4 @@ jobs:
181163 with :
182164 apiurl : ${{ secrets.KUBERNETES_APIURL }}
183165 token : ${{ secrets.KUBERNETES_TOKEN }}
184- deployments : ${{ vars.DEPLOYMENT_NAMES }}
166+ deployments : ${{ vars.DEPLOYMENT_NAMES }}
Original file line number Diff line number Diff line change 3434 body_path : README.md
3535 tag_name : ${{ github.ref_name }}
3636 prerelease : ${{ contains(github.ref_name, '-rc') }}
37+
38+ deploy-production :
39+ runs-on : ubuntu-latest
40+ needs : containerize
41+ if : ${{ !contains(github.ref_name, '-rc') }}
42+ environment : production
43+
44+ steps :
45+ - uses : actions/checkout@v4
46+ with :
47+ sparse-checkout : |
48+ .github
49+
50+ - uses : ./.github/actions/kubernetes-rollout-restart
51+ with :
52+ apiurl : ${{ secrets.KUBERNETES_APIURL }}
53+ token : ${{ secrets.KUBERNETES_TOKEN }}
54+ deployments : ${{ vars.DEPLOYMENT_NAMES }}
You can’t perform that action at this time.
0 commit comments