Skip to content

Merge pull request #7 from ruchernchong/6-update-deprecated-actions-i… #1

Merge pull request #7 from ruchernchong/6-update-deprecated-actions-i…

Merge pull request #7 from ruchernchong/6-update-deprecated-actions-i… #1

Workflow file for this run

name: Pulumi Deploy Production
on:
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'
concurrency:
group: merge-${{ github.ref }}
jobs:
deploy:

Check failure on line 12 in .github/workflows/pulumi.prod.yml

View workflow run for this annotation

GitHub Actions / Pulumi Deploy Production

Invalid workflow file

The workflow is not valid. .github/workflows/pulumi.prod.yml (Line: 12, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
environment: Preview
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: 'pip'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-region: ${{ vars.AWS_REGION }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Create Package for AWS Lambda Layer
run: |
python -m venv python
source python/bin/activate
pip install -r requirements.txt -t python
python create_package_zip.py
- uses: pulumi/actions@v5
with:
command: up
stack-name: prod
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
MONGODB_DB_NAME: ${{ secrets.MONGODB_DB_NAME }}