Skip to content

Commit adfbcae

Browse files
committed
fix: use runner container image with buildah pre-installed
1 parent b6ba7e8 commit adfbcae

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/buildah.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
needs: detect
4747
if: needs.detect.outputs.images != '[]'
4848
runs-on: arc-dind
49+
container:
50+
image: ghcr.io/makeitworkcloud/runner:latest
4951
strategy:
5052
matrix:
5153
image: ${{ fromJson(needs.detect.outputs.images) }}
@@ -54,19 +56,12 @@ jobs:
5456
- name: Checkout
5557
uses: actions/checkout@v4
5658

57-
- name: Install dependencies
59+
- name: Install hadolint
5860
run: |
59-
apt-get update
60-
apt-get install -y buildah
6161
curl -sSL -o /usr/local/bin/hadolint \
6262
https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64
6363
chmod +x /usr/local/bin/hadolint
6464
65-
- name: Install Python
66-
uses: actions/setup-python@v5
67-
with:
68-
python-version: '3.12'
69-
7065
- name: Run pre-commit
7166
uses: pre-commit/action@v3.0.1
7267

0 commit comments

Comments
 (0)