From 6be2c4ca64db850c73cea27198781f816bb91ab4 Mon Sep 17 00:00:00 2001 From: zhouyu Date: Mon, 2 Dec 2024 19:54:50 -0800 Subject: [PATCH] Adding container image and root user in the test job --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e72047e..d6c9891 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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: