Compare commits
3 commits
4aa7aa99f9
...
237fc1eb70
Author | SHA1 | Date | |
---|---|---|---|
237fc1eb70 | |||
261faee7d5 | |||
5a02cb44c8 |
2 changed files with 13 additions and 2 deletions
|
@ -10,6 +10,8 @@ jobs:
|
|||
docker:
|
||||
name: docker build
|
||||
runs-on: ubuntu-22.04
|
||||
needs:
|
||||
- test
|
||||
steps:
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
|
@ -18,4 +20,8 @@ jobs:
|
|||
- uses: docker/build-push-action@v5
|
||||
with:
|
||||
push: true
|
||||
tags: karcsesz/fingerlink:latest
|
||||
tags: karcsesz/fingerlink:latest
|
||||
- uses: docker/build-push-action@v5
|
||||
with:
|
||||
push: true
|
||||
tags: karcsesz/fingerlink:latest-nano
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue