Add conditions to use only the schedule event
This commit is contained in:
parent
36e1bae353
commit
3ba6dd767d
4
.github/workflows/demo.yml
vendored
4
.github/workflows/demo.yml
vendored
@ -17,6 +17,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-push-image-lecoffre:
|
build-and-push-image-lecoffre:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event_name == 'schedule' && github.ref == 'refs/heads/legacy_dev' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup SSH
|
- name: Setup SSH
|
||||||
@ -42,7 +43,8 @@ jobs:
|
|||||||
deploy-to-scaleway-lecoffre:
|
deploy-to-scaleway-lecoffre:
|
||||||
needs: build-and-push-image-lecoffre
|
needs: build-and-push-image-lecoffre
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: staging
|
environment: demo
|
||||||
|
if: ${{ github.event_name == 'schedule' && github.ref == 'refs/heads/legacy_dev' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install CLI
|
- name: Install CLI
|
||||||
uses: scaleway/action-scw@v0
|
uses: scaleway/action-scw@v0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user