Skip to content

deploy-dev

deploy-dev #332

Workflow file for this run

name: deploy-dev
on:
workflow_dispatch:
concurrency: ${{ github.head_ref }}

Check failure on line 6 in .github/workflows/deploy-dev.yml

View workflow run for this annotation

GitHub Actions / deploy-dev

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-dev.yml (Line: 6, Col: 14): Concurrency group name cannot be empty
jobs:
build-api:
uses: jbrunton/workflows/.github/workflows/build-image.yml@develop
with:
repo-name: jbrunton/chat-demo-api
working-directory: services/api
buildpack: paketo-buildpacks/nodejs
publish: true
docker-username: jbrunton
cache-image: jbrunton/chat-demo-api-cache-image:latest
secrets:
docker-access-token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
deploy-app:
environment:
name: Development
url: https://chat-demo-${{ github.head_ref }}.dev.jbrunton-aws.com
needs: [build-api]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Client
env:
VITE_API_URL: https://chat-demo-api-${{ github.head_ref }}.dev.jbrunton-aws.com
run: |
npm ci
npm run build
working-directory: client
- run: npm ci
working-directory: pulumi
- uses: pulumi/actions@v3
with:
command: up
stack-name: ${{ github.head_ref }}
upsert: true
work-dir: pulumi
comment-on-pr: true
github-token: ${{ secrets.CI_MINION_PAT }}
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
API_TAG: ${{ needs.build-api.outputs.tag }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}