mirror of
https://gitea.0xace.cc/rust/github-release-bot.git
synced 2024-11-25 13:56:39 +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
|
IMAGE=github-release-bot
|
||||||
ifneq ($(REGISTRY),)
|
ifneq ($(REGISTRY),)
|
||||||
_REGISTRY =$(REGISTRY)/
|
_REGISTRY =$(REGISTRY)/
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
FROM ekidd/rust-musl-builder as builder
|
FROM rust:alpine as builder
|
||||||
ADD --chown=rust:rust . .
|
RUN apk update
|
||||||
|
RUN apk add --no-cache openssl-dev musl-dev
|
||||||
RUN cargo build --release
|
WORKDIR /opt
|
||||||
|
ADD . .
|
||||||
|
RUN cargo build --release --verbose
|
||||||
|
|
||||||
FROM alpine:latest
|
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
|
COPY ./docker/entrypoint.sh /opt/entrypoint.sh
|
||||||
RUN chmod +x /opt/entrypoint.sh
|
RUN chmod +x /opt/entrypoint.sh
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
|
Loading…
Reference in New Issue
Block a user