This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
CD #263
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
name: CD | |
on: | |
workflow_run: | |
workflows: [CI] | |
branches: [master] | |
types: | |
- completed | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
container: amiveth/service-update-helper:latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
strategy: | |
matrix: | |
deploy-url: | |
- https://deploy-cluster.amiv.ethz.ch | |
- https://deploy-fallback.amiv.ethz.ch | |
deploy-service: | |
- amivapi | |
- amivapi-cron | |
- amivapi-dev | |
- amivapi-dev-cron | |
exclude: | |
- deploy-url: 'https://deploy-fallback.amiv.ethz.ch' | |
deploy-service: 'amivapi-dev' | |
- deploy-url: 'https://deploy-fallback.amiv.ethz.ch' | |
deploy-service: 'amivapi-dev-cron' | |
env: | |
CI_DEPLOY_URL: ${{ matrix.deploy-url }} | |
CI_DEPLOY_SERVICE: ${{ matrix.deploy-service }} | |
CI_DEPLOY_TOKEN: ${{ secrets.CI_DEPLOY_TOKEN }} | |
steps: | |
- run: /update.py |