Skip to content

Commit

Permalink
Adding container image and root user in the test job
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhoubk committed Dec 3, 2024
1 parent 5584e2b commit 6be2c4c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
setup:
runs-on: ubuntu-latest

container:
image: alpine:latest
options: --user=root

steps:
# See https://github.com/docker/build-push-action/blob/v2.10.0/TROUBLESHOOTING.md#repository-name-must-be-lowercase
- name: Sanitize image name
Expand Down Expand Up @@ -77,8 +81,8 @@ jobs:
runs-on: ubuntu-latest

container:
image: alpine:latest
options: --user=root
options: --init
image: ${{ needs.build.outputs.build_image }}

defaults:
run:
Expand Down

0 comments on commit 6be2c4c

Please sign in to comment.