ebs/.github/workflows/cd.yml
ThomasSamson c38abf69ea Init CICD
2024-02-27 14:13:32 +01:00

38 lines
1 KiB
YAML

name: CD
on:
push:
branches:
- main
jobs:
# remove-deploy-label:
# name: Remove deploy label
# if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy')
# runs-on: ubuntu-latest
# steps:
# - uses: mondeja/remove-labels-gh-action@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# labels: |
# deploy
build:
name: Build
uses: ./.github/workflows/build.yml
deploy:
name: Deploy
needs: [ build ]
uses: ./.github/workflows/deploy.yml
concurrency: ${{ github.ref }}-deploy
secrets:
domain: ${{ secrets.DOMAIN }}
payum-apikey: ${{ secrets.PAYUM_APIKEY }}
mailer-dsn: '${{ secrets.MAILER_DSN }}'
storage-key: ${{ secrets.STORAGE_KEY }}
storage-secret-key: ${{ secrets.STORAGE_SECRET_KEY}}
project-id: ${{ secrets.PROJECT_ID }}
workload-identity-provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}
database-url: ${{ secrets.DATABASE_URL }}