cicd: run on every pull request, but only deploy on testing
This commit is contained in:
parent
5ba4085e60
commit
e34fb979ef
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,8 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- testing
|
- testing
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
@ -23,6 +25,7 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
needs: [test]
|
needs: [test]
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
if: github.ref == 'refs/heads/testing'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install ansible
|
- name: Install ansible
|
||||||
|
|
Loading…
Reference in a new issue