Skip to content

Commit

Permalink
added apply workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelloromani committed Oct 29, 2023
1 parent 3ac9039 commit a477b05
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pulumi
name: Pulumi Preview
on:
- pull_request
- workflow_dispatch
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/on_push_to_main_apply.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Pulumi Up
on:
push:
branches:
- main

jobs:
update:
name: Update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v3
with:
aws-region: ${{ secrets.AWS_REGION }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Install requirements
working-directory: infra
run: pip install -r requirements.txt

- uses: pulumi/actions@v4
with:
command: up
stack-name: marcelloromani/lmgify-net/dev
work-dir: infra
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}

0 comments on commit a477b05

Please sign in to comment.