feat(release): stage exact SHA on dev before automatic production
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [main, hardening]
|
||||
branches: [hardening]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
name: Release dev
|
||||
on:
|
||||
push:
|
||||
branches: [release]
|
||||
|
||||
jobs:
|
||||
stage:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Full gate and isolated dev
|
||||
env:
|
||||
EXPECTED_SHA: ${{ gitea.sha }}
|
||||
EXPECTED_REF: ${{ gitea.ref }}
|
||||
run: bash scripts/auto_stage.sh
|
||||
@@ -0,0 +1,17 @@
|
||||
name: Release production
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Full gate and protected production deploy
|
||||
env:
|
||||
EXPECTED_SHA: ${{ gitea.sha }}
|
||||
EXPECTED_REF: ${{ gitea.ref }}
|
||||
run: bash scripts/auto_prod.sh
|
||||
Reference in New Issue
Block a user