Skip to content

ci: quote the env var #1

ci: quote the env var

ci: quote the env var #1

Workflow file for this run

name: Deploy To Development
on: [workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
npm ci
npm run lint
test:
runs-on: ubuntu-latest
environment: development
env:
DOCKER_REPO: ${{ secrets.DEPLOY_DOCKER_REPOSITORY }}
DOCKER_COMPOSE_CMD: DOCKER_COMPOSE_CMD --progress plain
steps:
- uses: actions/checkout@v4
- id: install-awscli
run: |
curl --silent "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -q awscliv2.zip
sudo ./aws/install --update
sudo apt-get -qq update
sudo apt-get -qq install -y rsync
- id: install-node-dependencies
run: |
npm ci
npx playwright install --with-deps
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.DEPLOY_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DEPLOY_AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-2
- uses: aws-actions/amazon-ecr-login@v1

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

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-to-dev.yml

Invalid workflow file

You have an error in your yaml syntax on line 43
- id: run-with-docker-compose
run: "$DOCKER_COMPOSE_CMD" -f docker-compose-real-backend.yml up -d
- id: docker-compose-ps
run: |
sleep 30
"$DOCKER_COMPOSE_CMD" -f docker-compose-real-backend.yml ps
curl -v http://localhost:8085/
- id: run-acceptance-tests
run: npm run test:acceptance:ci
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- id: docker-compose-logs
if: always()
run: |
"$DOCKER_COMPOSE_CMD" -f docker-compose-real-backend.yml logs --tail frontend
"$DOCKER_COMPOSE_CMD" -f docker-compose-real-backend.yml logs --tail request-api
- id: stop-containers
if: always()
run: "$DOCKER_COMPOSE_CMD" -f docker-compose-real-backend.yml down