Skip to content

cardano-services

cardano-services #1

jobs:
deploy:
environment: ${{ inputs.environment }}
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v3
- name: 🧰 Setup Nix
uses: nixbuild/nix-quick-install-action@v28
- uses: aws-actions/[email protected]
with:
aws-region: us-east-1
role-to-assume: ${{ contains(github.ref, "release/") && 'arn:aws:iam::926093910549:role/eks-admin'

Check failure on line 13 in .github/workflows/cardano-services.yaml

View workflow run for this annotation

GitHub Actions / cardano-services

Invalid workflow file

The workflow is not valid. .github/workflows/cardano-services.yaml (Line: 13, Col: 25): Unexpected symbol: '"release/"'. Located at position 22 within expression: contains(github.ref, "release/") && 'arn:aws:iam::926093910549:role/eks-admin' || 'arn:aws:iam::926093910549:role/eks-devs'
|| 'arn:aws:iam::926093910549:role/eks-devs' }}
- name: 🚀 Deploy
run: 'echo "yes" | nix run .#cardano-services.${{inputs.target}}.${{inputs.action}}
'
name: cardano-services
'on':
workflow_call:
inputs:
action:
required: true
type: string
target:
required: true
type: string
workflow_dispatch:
inputs:
action:
description: Action
options:
- apply
- destroy
- plan
required: true
type: choice
target:
description: Targets
options:
- dev-mainnet@us-east-1
- dev-preprod@us-east-1@v2
- dev-preview@us-east-1
- dev-sanchonet@us-east-1
- live-mainnet@eu-central-1@v2
- live-mainnet@us-east-2@v2
- live-preprod@eu-central-1@v2
- live-preprod@us-east-2@v2
- live-preview@eu-central-1@v2
- live-preview@us-east-2@v2
- live-sanchonet@eu-central-1
- live-sanchonet@us-east-2
- local-network@us-east-1@v1
- ops-preprod-1@us-east-1
- ops-preview-1@us-east-1
- staging-mainnet@eu-west-1@v2
- staging-preprod@us-east-1@v2
required: true
type: choice
permissions:
contents: read
id-token: write