move some steps into the base image

This commit is contained in:
cascode _ 2023-10-21 12:33:45 -07:00
parent d8b6e31836
commit b7c37613ce
2 changed files with 9 additions and 7 deletions

View File

@ -7,17 +7,12 @@ jobs:
lint: lint:
runs_on: "alpine_amd64" runs_on: "alpine_amd64"
container: container:
image: "rust:1.73-alpine3.18" # TODO use communitymedia docker registry
image: "cascode/aural-isle-ci:0"
name: format name: format
steps: steps:
- name: TODO put in image base
run: apk add nodejs git
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
github-server-url: "https://code.communitymedia.network" 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 - name: rustfmt
run: cargo fmt --check run: cargo fmt --check

7
ci/Dockerfile Normal file
View File

@ -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