From e56a40a4699cf3d6e84aee60136f6d577102b9ef Mon Sep 17 00:00:00 2001 From: cascode Date: Sat, 21 Oct 2023 12:33:45 -0700 Subject: [PATCH] move some steps into the base image --- .gitea/workflows/checks.yml | 9 ++------- ci/Dockerfile | 7 +++++++ 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 ci/Dockerfile diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml index 176c323..f76c69f 100644 --- a/.gitea/workflows/checks.yml +++ b/.gitea/workflows/checks.yml @@ -7,17 +7,12 @@ jobs: lint: runs_on: "alpine_amd64" container: - image: "rust:1.73-alpine3.18" + # TODO use communitymedia docker registry + image: "cascode/aural-isle-ci:0" name: format steps: - - name: TODO put in image base - run: apk add nodejs git - uses: actions/checkout@v3 with: github-server-url: "https://code.communitymedia.network" - - name: TODO put in image base - run: rustup component add rustfmt - - name: ls - run: "ls -al && pwd" - name: rustfmt run: cargo fmt --check diff --git a/ci/Dockerfile b/ci/Dockerfile new file mode 100644 index 0000000..ec93337 --- /dev/null +++ b/ci/Dockerfile @@ -0,0 +1,7 @@ +FROM rust:1.73-alpine3.18 + +#install build tooling +RUN rustup component add rustfmt + +# install gitea act_runner dependencies +RUN apk add nodejs git