Skip to content

Commit 5873864

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

File tree

12 files changed

+23
-11
lines changed

12 files changed

+23
-11
lines changed

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Docker Push
33
on:
44
push:
55
paths:
6-
- 'todo-app/lambda_function/**'
6+
- 'todo_app/lambda_function/**'
77
branches:
88
- main
99

@@ -78,8 +78,8 @@ jobs:
7878
uses: docker/build-push-action@v5
7979
id: build-push-to-ecr
8080
with:
81-
context: todo-app/lambda_function
82-
file: todo-app/lambda_function/Dockerfile
81+
context: todo_app/lambda_function
82+
file: todo_app/lambda_function/Dockerfile
8383
push: true
8484
tags: ${{ env.ECR_REGISTRY }}/${{ env.REPO_NAME }}:${{ steps.sha_short.outputs.sha_short }}
8585
platforms: linux/amd64,linux/arm64

.github/workflows/pulumi-deploy.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ name: Pulumi Deploy
33
on:
44
push:
55
paths:
6-
- 'todo-app/**'
6+
- 'todo_app/**'
77
branches:
88
- main # Trigger on push to the main branch
99

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
@@ -32,20 +33,27 @@ jobs:
3233
aws-region: ${{ secrets.AWS_REGION }}
3334
role-session-name: GithubActionsSession
3435
- name: Install Dependencies
35-
working-directory: todo-app
36+
working-directory: todo_app
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 }}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
*.pyc
22
venv/
3-
File renamed without changes.

todo-app/Pulumi.yaml renamed to 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+
File renamed without changes.

0 commit comments

Comments
 (0)