Skip to content

Commit 6729513

Browse files
author
Adetokunbo Ige
committed
chore: update the pulumi stack name
Signed-off-by: Adetokunbo Ige <[email protected]>
1 parent a0caf11 commit 6729513

File tree

4 files changed

+23
-8
lines changed

4 files changed

+23
-8
lines changed

.github/workflows/pulumi-deploy.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ on:
77
branches:
88
- main # Trigger on push to the main branch
99

10+
11+
defaults:
12+
run:
13+
working-directory: ./todo-app #
14+
1015
jobs:
1116
pulumi-deploy:
1217
runs-on: ubuntu-latest
13-
env:
14-
AWS_REGION: ${{ secrets.AWS_REGION }}
1518

1619
permissions:
1720
id-token: write
@@ -36,16 +39,25 @@ jobs:
3639
run: |
3740
pip install -r requirements.txt
3841
39-
- uses: pulumi/actions@v3
42+
- name: Configure Pulumi
43+
working-directory: todo-app
44+
run: |
45+
pulumi stack select ExitoLab/todo-app/dev --non-interactive || pulumi stack init ExitoLab/todo-app/dev
46+
env:
47+
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
48+
49+
- name: Pulumi Preview
50+
uses: pulumi/actions@v3
4051
with:
4152
command: preview
42-
stack-name: dev
53+
stack-name: ExitoLab/todo-app/dev
4354
env:
4455
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
4556

46-
- uses: pulumi/actions@v3
57+
- name: Pulumi Up
58+
uses: pulumi/actions@v3
4759
with:
4860
command: up
49-
stack-name: dev
61+
stack-name: ExitoLab/todo-app/dev
5062
env:
5163
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}

todo-app/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
*.pyc
22
venv/
3-

todo-app/Pulumi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ config:
99
pulumi:tags:
1010
value:
1111
pulumi:template: aws-python
12+

todo-app/requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
pulumi>=3.0.0,<4.0.0
22
pulumi-aws>=6.0.2,<7.0.0
33
pulumi_docker==3.4.0
4-
setuptools
4+
setuptools
5+
6+
7+

0 commit comments

Comments
 (0)