diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2596daa --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: ci + +on: + pull_request: + +jobs: + build_runner: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + attestations: write + steps: + - uses: actions/checkout@v4 + - uses: extractions/setup-just@v1 + - name: Docker build + run: just build diff --git a/dockerfile b/dockerfile index dc5aa1b..75b2d2e 100644 --- a/dockerfile +++ b/dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/actions/actions-runner:2.320.0 +FROM ghcr.io/actions/actions-runner:2.321.0 USER root @@ -19,8 +19,11 @@ RUN apt-get install -y --no-install-recommends \ unzip \ pkg-config \ apt-transport-https \ - ca-certificates && \ - rm -rf /var/lib/apt/lists/* + ca-certificates \ + && rm -rf /var/lib/apt/lists/* + +RUN curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/bin +RUN just --version # Copy the start script and make it executable COPY start.sh /start.sh diff --git a/justfile b/justfile index 0732ce3..cfd694a 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,6 @@ IMAGE_NAME:="ghcr.io/rustunit/github-runner" -IMAGE_TAG:="0.1.0" +IMAGE_TAG:="0.2.0" build: docker build -t {{IMAGE_NAME}}:latest .