Skip to content

Commit 30f9b15

Browse files
committed
chore: modify gh actions workflow to use oidc and uv
1 parent 4b6c0af commit 30f9b15

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/deploy_backend.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy SPARCS Events Service
1+
name: Deploy DurianPy Events Service
22
on:
33
push:
44
paths:
@@ -16,28 +16,29 @@ jobs:
1616
uses: actions/checkout@v3
1717

1818
- name: Configure AWS Credentials
19-
uses: aws-actions/configure-aws-credentials@v1
20-
19+
uses: aws-actions/configure-aws-credentials@v4.1.0
2120
with:
22-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
23-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2421
aws-region: ap-southeast-1
22+
role-to-assume: arn:aws:iam::285637954943:role/techtix-github-action-oidc-role
23+
role-session-name: GithubActionSession
2524

2625
- name: Set up Python
27-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v5
2827
with:
29-
python-version: 3.8
28+
python-version-file: ".python-version"
29+
30+
- name: Install uv
31+
uses: astral-sh/setup-uv@v6
3032

3133
- name: Install dependencies
3234
run: |
33-
python3 -m pip install pipenv==2023.4.29
34-
pipenv install
35+
uv sync --locked --all-extras --dev
3536
working-directory: backend
3637

3738
- name: Install Serverless Framework
3839
run: |
3940
npm install
40-
npm install -g serverless@3.39.0
41+
npm install -g serverless@3.40.0
4142
working-directory: backend
4243

4344
- name: Deploy with Serverless

0 commit comments

Comments
 (0)