Compare commits

...

3 commits

Author SHA1 Message Date
237fc1eb70 Add target dir to PATH
Some checks failed
/ cargo test (push) Has been cancelled
/ docker build (push) Has been cancelled
2024-03-18 00:55:14 +01:00
261faee7d5 Add nano as an option 2024-03-18 00:42:32 +01:00
5a02cb44c8 Switch to alpine and provide default editor 2024-03-18 00:38:26 +01:00
2 changed files with 13 additions and 2 deletions

View file

@ -10,6 +10,8 @@ jobs:
docker:
name: docker build
runs-on: ubuntu-22.04
needs:
- test
steps:
- uses: docker/login-action@v3
with:
@ -19,3 +21,7 @@ jobs:
with:
push: true
tags: karcsesz/fingerlink:latest
- uses: docker/build-push-action@v5
with:
push: true
tags: karcsesz/fingerlink:latest-nano

View file

@ -13,8 +13,13 @@ COPY . .
RUN cargo build --target $target --release
FROM scratch
FROM alpine:latest
ARG editor=vim
RUN apk add --no-cache $editor
ENV EDITOR=$editor
ENV PATH="${PATH}:/fingerlink"
WORKDIR /fingerlink
COPY --from=builder /fingerlink/target/x86_64-unknown-linux-musl/release/fingerlink /fingerlink/fingerlink