Skip to content

Commit 6e1e49c

Browse files
ci: extend aws credential lifetime during image build (edgelesssys#3944)
Signed-off-by: Daniel Weiße <[email protected]>
1 parent 873fd8d commit 6e1e49c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-os-image.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ jobs:
151151
with:
152152
role-to-assume: arn:aws:iam::795746500882:role/GitHubConstellationImagePipeline
153153
aws-region: eu-central-1
154+
# extend token expiry to 3 hours to ensure long image builds don't fail because of expired credentials
155+
role-duration-seconds: 10800
154156

155157
- name: Login to Azure
156158
uses: ./.github/actions/login_azure
@@ -172,7 +174,7 @@ jobs:
172174
run: |
173175
sudo sysctl --ignore --write kernel.apparmor_restrict_unprivileged_unconfined=0
174176
sudo sysctl --ignore --write kernel.apparmor_restrict_unprivileged_userns=0
175-
177+
176178
- name: Build and upload
177179
id: build
178180
shell: bash

0 commit comments

Comments
 (0)