fix: clean up workflow duplication and syntax
This commit is contained in:
parent
e635e73e2b
commit
02f74ce659
|
|
@ -10,40 +10,27 @@ jobs:
|
||||||
validate:
|
validate:
|
||||||
runs-on: k8s
|
runs-on: k8s
|
||||||
container: node:18-bullseye
|
container: node:18-bullseye
|
||||||
container:
|
|
||||||
image: node:18-bullseye
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ gitea.sha }}
|
ref: ${{ gitea.sha }}
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ gitea.sha }}
|
|
||||||
- name: Validate repository
|
- name: Validate repository
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
./jeannie validate
|
./jeannie validate
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: k8s
|
runs-on: k8s
|
||||||
container: node:18-bullseye
|
container: node:18-bullseye
|
||||||
container:
|
|
||||||
image: node:18-bullseye
|
|
||||||
needs:
|
needs:
|
||||||
- validate
|
- validate
|
||||||
if: ${{ gitea.ref == 'refs/heads/main' }}
|
if: ${{ gitea.ref == 'refs/heads/main' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ gitea.sha }}
|
ref: ${{ gitea.sha }}
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ gitea.sha }}
|
|
||||||
- name: Block automatic deploy for external Gitea changes
|
- name: Block automatic deploy for external Gitea changes
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue