-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb9d412
commit 1fb0f4f
Showing
2 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
|
||
name: "Déploiement continu" | ||
|
||
on: | ||
workflow_call: | ||
push: | ||
branches: | ||
- main | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy on Scalingo | ||
needs: [run_tests] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: action/checkout@v4 | ||
- uses: kolok/deploy-to-scalingo@v1 | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
known-host: ssh.osc-fr1.scalingo.com | ||
app-name: quefairedemesobjets-preprod | ||
|
||
- uses: mattermost/action-mattermost-notify@master | ||
with: | ||
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} | ||
PAYLOAD: |- | ||
{ | ||
"text": "Le déploiement s'est déroulé avec succès. Il est visible sur https://quefairedemesobjets-preprod.osc-fr1.scalingo.io", | ||
"channel": "lvao-tour-de-controle", | ||
"username": "Bipboop le robot de seconde main", | ||
"icon": "https://cdn3.iconfinder.com/data/icons/system-basic-vol-4-1/20/icon-note-attention-alt3-512.png" | ||
} | ||
deploy_airflow-webserver: | ||
name: Deploy PREPROD Airflow webserver on Clever Cloud | ||
needs: [run_tests] | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: 47ng/[email protected] | ||
with: | ||
alias: lvao-preprod-airflow-webserver | ||
env: | ||
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }} | ||
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }} | ||
|
||
|
||
deploy_airflow-scheduler: | ||
name: Deploy PREPROD Airflow scheduler on Clever Cloud | ||
needs: [run_tests] | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: 47ng/[email protected] | ||
with: | ||
alias: lvao-preprod-airflow-scheduler | ||
env: | ||
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }} | ||
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }} |