Skip to content

add ASSETS_* secrets as inputs #530

add ASSETS_* secrets as inputs

add ASSETS_* secrets as inputs #530

name: Deploy Staging
on:
push:
branches:
- migration-ionos
jobs:
setup_env:
uses: ./.github/workflows/setup-env.yml
with:
ENVIRONMENT: staging
TILES_URL: staging-tiles.radverkehrsatlas.de
CACHELESS_URL: staging-cacheless.radverkehrsatlas.de
NEXT_PUBLIC_APP_ORIGIN: https://staging.radverkehrsatlas.de
NEXT_PUBLIC_APP_ENV: staging
NEXT_PUBLIC_OSM_API_URL: https://master.apis.dev.openstreetmap.org/api/0.6
APP_URL: staging.radverkehrsatlas.de
secrets: inherit
restart_services:
uses: ./.github/workflows/restart-services.yml
needs: setup_env
with:
ENVIRONMENT: staging
secrets: inherit
call-deploy-app:
needs: restart_services
uses: ./.github/workflows/deploy-app-ionos.yml
with:
ENVIRONMENT: staging
APP_ORIGIN: http://staging.trassenscout.de
NEXT_PUBLIC_APP_ORIGIN: http://staging.trassenscout.de
NEXT_PUBLIC_APP_ENV: staging
S3_UPLOAD_BUCKET: trassenscout
S3_UPLOAD_REGION: eu-central-1
S3_UPLOAD_ROOTFOLDER: upload-staging
ASSETS_BUCKET_HOST: ${{ secrets.ASSETS_BUCKET_HOST }}

Check failure on line 35 in .github/workflows/deploy-app-staging.yml

View workflow run for this annotation

GitHub Actions / Deploy Staging

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-app-staging.yml (Line: 35, Col: 27): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.ASSETS_BUCKET_HOST .github/workflows/deploy-app-staging.yml (Line: 36, Col: 27): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.ASSETS_BUCKET_PATH
ASSETS_BUCKET_PATH: ${{ secrets.ASSETS_BUCKET_PATH }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
SESSION_SECRET_KEY: ${{ secrets.SESSION_SECRET_KEY}}
MAILJET_APIKEY_PUBLIC: ${{ secrets.MAILJET_APIKEY_PUBLIC }}
MAILJET_APIKEY_PRIVATE: ${{ secrets.MAILJET_APIKEY_PRIVATE }}
NGINX_HTPASSWD: ${{ secrets.NGINX_HTPASSWD }}
S3_UPLOAD_KEY: ${{ secrets.S3_UPLOAD_KEY }}
S3_UPLOAD_SECRET: ${{ secrets.S3_UPLOAD_SECRET }}
FELT_TOKEN: ${{ secrets.FELT_TOKEN }}
ADMIN_EMAIL: ${{ secrets.ADMIN_EMAIL }}
TS_API_KEY: ${{ secrets.TS_API_KEY }}