Skip to content

refactor to be reusable #5

refactor to be reusable

refactor to be reusable #5

Workflow file for this run

name: Release CI
env:
PROJECT_NAME: mmw
FILMDROP_TERRAFORM_RELEASE: v2.23.0 # keep this up to date!
on:
push:
branches: ["main"]
tags: ["v*.*.*"]
jobs:
deploy-staging:
environment:
name: staging
url: https://tiler.staging.modelmywatershed.org
uses: ./.github/workflows/deploy-reusable.yaml

Check failure on line 17 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / Release CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 17, Col: 5): Unexpected value 'uses' .github/workflows/ci.yaml (Line: 18, Col: 5): Unexpected value 'secrets'
secrets: inherit
with:
project-name: ${{ env.PROJECT_NAME }}
stage: staging
fd-aws-tf-modules-version: ${{ env.FILMDROP_TERRAFORM_RELEASE }}
aws-region: ${{ secrets.AWS_REGION }}
aws-role: ${{ secrets.AWS_ROLE }}
tf-state-bucket: ${{ secrets.TF_STATE_BUCKET }}
tf-state-lock: ${{ secrets.TF_STATE_LOCK_TABLE }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
slack-channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
deploy-prod:
environment:
name: prod
url: https://tiler.modelmywatershed.org
uses: ./.github/workflows/deploy-reusable.yaml
secrets: inherit
with:
project-name: ${{ env.PROJECT_NAME }}
stage: staging
fd-aws-tf-modules-version: ${{ env.FILMDROP_TERRAFORM_RELEASE }}
aws-region: ${{ secrets.AWS_REGION }}
aws-role: ${{ secrets.AWS_ROLE }}
tf-state-bucket: ${{ secrets.TF_STATE_BUCKET }}
tf-state-lock: ${{ secrets.TF_STATE_LOCK_TABLE }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
slack-channel-id: ${{ secrets.SLACK_CHANNEL_ID }}