Bump symfony/process from 7.0.4 to 7.1.7 in /api #754
Workflow file for this run
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: CI + CD | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
get-environment-name: | |
name: "Extract environment name" | |
runs-on: ubuntu-latest | |
outputs: | |
environment: ${{ steps.extract.outputs.environment }} | |
steps: | |
- id: extract | |
run: echo "environment=$(echo $GITHUB_REF | sed -e '/^refs\/heads\/deploy-\(.*\)$/!d;s//\1/')" >> $GITHUB_OUTPUT | |
- env: | |
EXTRACTED: ${{ steps.extract.outputs.environment }} | |
run: 'echo "Extracted environment name: $EXTRACTED"' | |
deploy: | |
name: "Deploy" | |
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && needs.get-environment-name.outputs.environment }} | |
needs: | |
- get-environment-name | |
environment: ${{ needs.get-environment-name.outputs.environment }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo apt-get update -y && sudo apt-get install -y lftp | |
- uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }} | |
- run: sudo apt-get update -y && sudo apt-get install -y lftp | |
- uses: ./.github/actions/deploy | |
with: | |
ssh-username: ${{ secrets.SSH_USERNAME }} | |
ssh-host: ${{ vars.SSH_HOST }} | |
ssh-backend-directory: ${{ vars.SSH_BACKEND_DIRECTORY }} | |
ssh-frontend-directory: ${{ vars.SSH_FRONTEND_DIRECTORY }} | |
app-name: ${{ vars.APP_NAME }} | |
app-key: ${{ secrets.APP_KEY }} | |
backend-url: ${{ vars.BACKEND_URL }} | |
frontend-url: ${{ vars.FRONTEND_URL }} | |
db-host: ${{ secrets.DB_HOST }} | |
db-database: ${{ secrets.DB_DATABASE }} | |
db-username: ${{ secrets.DB_USERNAME }} | |
db-password: ${{ secrets.DB_PASSWORD }} | |
midata-base-url: ${{ vars.MIDATA_BASE_URL }} | |
midata-client-uid: ${{ vars.MIDATA_CLIENT_UID }} | |
midata-client-secret: ${{ secrets.MIDATA_CLIENT_SECRET }} | |
seed-db: ${{ vars.SEED_DB }} | |
midata-id: ${{ vars.MIDATA_ID }} | |
ssh-port: ${{ vars.SSH_PORT }} | |
mail-username: ${{ secrets.MAIL_USERNAME }} | |
mail-password: ${{ secrets.MAIL_PASSWORD }} | |
mail-mailer: ${{ vars.MAIL_MAILER }} | |
mail-host: ${{ vars.MAIL_HOST }} | |
mail-port: ${{ vars.MAIL_PORT }} | |
mail-encryption: ${{ vars.MAIL_ENCRYPTION }} | |
mail-from-address: ${{ vars.MAIL_FROM_ADDRESS }} | |
mail-from-name: ${{ vars.MAIL_FROM_NAME }} | |
deployment-secret-key: ${{ secrets.DEPLOYMENT_SECRET_KEY }} | |
php-path: ${{ vars.PHP_PATH }} |