mirror of
https://gitea.0xace.cc/rust/github-release-bot.git
synced 2024-11-25 05:46:40 +00:00
update build to v0.1.4
This commit is contained in:
parent
f6e2d5857b
commit
3efe3a88d7
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
||||
VERSION=0.1.3
|
||||
VERSION=0.1.4
|
||||
IMAGE=github-release-bot
|
||||
ifneq ($(REGISTRY),)
|
||||
_REGISTRY =$(REGISTRY)/
|
||||
|
@ -1,10 +1,12 @@
|
||||
FROM ekidd/rust-musl-builder as builder
|
||||
ADD --chown=rust:rust . .
|
||||
|
||||
RUN cargo build --release
|
||||
FROM rust:alpine as builder
|
||||
RUN apk update
|
||||
RUN apk add --no-cache openssl-dev musl-dev
|
||||
WORKDIR /opt
|
||||
ADD . .
|
||||
RUN cargo build --release --verbose
|
||||
|
||||
FROM alpine:latest
|
||||
COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/github-release-bot /opt/github-release-bot
|
||||
COPY --from=builder /opt/target/release/github-release-bot /opt/github-release-bot
|
||||
COPY ./docker/entrypoint.sh /opt/entrypoint.sh
|
||||
RUN chmod +x /opt/entrypoint.sh
|
||||
WORKDIR /opt
|
||||
|
Loading…
Reference in New Issue
Block a user