diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 63edc499..63525c68 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -1,8 +1,8 @@ name: Demo - Build & Deploy to Scaleway on: - push: - branches: [legacy_dev] + schedule: + - cron: '00 15 * * *' # 15:00 UTC -> 17:00 CEST env: PROJECT_ID_LECOFFRE: 72d08499-37c2-412b-877e-f8af0471654a @@ -17,6 +17,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: cicd - name: Setup SSH run: | mkdir -p ~/.ssh @@ -40,7 +42,7 @@ jobs: deploy-to-scaleway-lecoffre: needs: build-and-push-image-lecoffre runs-on: ubuntu-latest - environment: staging + environment: demo steps: - name: Install CLI uses: scaleway/action-scw@v0 diff --git a/.github/workflows/prd.yml b/.github/workflows/prd.yml index e9e670c8..322bcc54 100644 --- a/.github/workflows/prd.yml +++ b/.github/workflows/prd.yml @@ -1,8 +1,8 @@ name: Prod - Build & Deploy to Scaleway on: - push: - branches: [main] + schedule: + - cron: '00 20 * * *' # 20:00 UTC -> 22:00 CEST env: