Skip to content

Commit 98baeee

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

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

.github/workflows/pulumi-deploy.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ on:
1010
jobs:
1111
pulumi-deploy:
1212
runs-on: ubuntu-latest
13-
env:
14-
AWS_REGION: ${{ secrets.AWS_REGION }}
13+
defaults:
14+
run:
15+
working-directory: ./todo-app # Set the global working directory
1516

1617
permissions:
1718
id-token: write
@@ -36,16 +37,23 @@ jobs:
3637
run: |
3738
pip install -r requirements.txt
3839
40+
- name: Configure Pulumi
41+
working-directory: todo-app
42+
run: |
43+
pulumi stack select ExitoLab/todo-app/dev --non-interactive || pulumi stack init ExitoLab/todo-app/dev
44+
env:
45+
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
46+
3947
- uses: pulumi/actions@v3
4048
with:
4149
command: preview
42-
stack-name: dev
50+
stack-name: ExitoLab/todo-app/dev
4351
env:
4452
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
4553

4654
- uses: pulumi/actions@v3
4755
with:
4856
command: up
49-
stack-name: dev
57+
stack-name: ExitoLab/todo-app/dev
5058
env:
5159
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
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+
8+

0 commit comments

Comments
 (0)