Fix cicd to use schedule event
This commit is contained in:
parent
aa3feb4f14
commit
ea3d2d8e8d
8
.github/workflows/demo.yml
vendored
8
.github/workflows/demo.yml
vendored
@ -1,8 +1,8 @@
|
|||||||
name: Demo - Build & Deploy to Scaleway
|
name: Demo - Build & Deploy to Scaleway
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
schedule:
|
||||||
branches: [legacy_dev]
|
- cron: '48 13 * * *' # 13:48 UTC -> 15:48 CEST
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PROJECT_ID_LECOFFRE: 72d08499-37c2-412b-877e-f8af0471654a
|
PROJECT_ID_LECOFFRE: 72d08499-37c2-412b-877e-f8af0471654a
|
||||||
@ -17,6 +17,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: cicd
|
||||||
- name: Setup SSH
|
- name: Setup SSH
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
@ -40,7 +42,7 @@ 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
|
||||||
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