Skip to content

Commit

Permalink
Added sanity check to minimal image build
Browse files Browse the repository at this point in the history
  • Loading branch information
axelfontaine committed Jul 9, 2024
1 parent cbc707d commit 5c67d59
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
provenance: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-22.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile-ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-24.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile-ubuntu-24.04
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile-minimal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:24.04
FROM ubuntu:22.04

ARG TARGETOS
ARG TARGETARCH
Expand Down Expand Up @@ -50,9 +50,13 @@ RUN export RUNNER_ARCH=${TARGETARCH} \
&& tar xzf ./runner.tar.gz \
&& rm runner.tar.gz

RUN ./bin/installdependencies.sh \
RUN apt-get update \
&& ./bin/installdependencies.sh \
&& rm -rf /var/lib/apt/lists/*

USER runner

# Quick sanity check ensuring the runner is fully functional
RUN ./config.sh --version

CMD (sudo dockerd &) && ./config.sh --url https://github.com/$REPO --token $TOKEN --labels $LABELS --ephemeral --disableupdate --unattended && ./run.sh

0 comments on commit 5c67d59

Please sign in to comment.