update build to v0.1.4

This commit is contained in:
ace 2023-03-05 11:00:07 +03:00
parent f6e2d5857b
commit 3efe3a88d7
Signed by: ace
GPG Key ID: 2C08973DD37A76FD
2 changed files with 8 additions and 6 deletions

View File

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

View File

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