Compare commits

..

No commits in common. "b43eb07f8d87626cf1084c72615111428eab852f" and "1bd3ed35233ed3bb28f3f301f11106effbab9b81" have entirely different histories.

3 changed files with 9 additions and 8 deletions

View File

@ -3,25 +3,24 @@ platform: linux/amd64
pipeline:
dev:
image: woodpeckerci/plugin-docker-buildx
image: plugins/docker
secrets: [ docker_username, docker_password ]
settings:
repo: chewingbever/vieter
tag: dev
platforms: [ linux/arm64/v8, linux/amd64 ]
when:
event: push
branch: dev
release:
image: woodpeckerci/plugin-docker-buildx
image: plugins/docker
secrets: [ docker_username, docker_password ]
settings:
repo: chewingbever/vieter
tag:
- latest
- $CI_COMMIT_TAG
platforms: [ linux/arm64/v8, linux/amd64 ]
mtu: 1000
when:
event: tag
branch: main

View File

@ -5,15 +5,17 @@ WORKDIR /app
# Copy over source code & build production binary
COPY src ./src
COPY Makefile ./
ENV LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static'
RUN v -o pvieter -cflags "-O3" src
RUN make prod
FROM alpine:3.15
ENV REPO_DIR=/data
RUN apk update && \
apk add --no-cache \
libarchive
COPY --from=builder /app/pvieter /usr/local/bin/vieter
ENTRYPOINT [ "/usr/local/bin/vieter" ]

View File

@ -8,7 +8,7 @@ LARCHIVE_LIB := $(LARCHIVE_DIR)/libarchive/libarchive.so
# Custom V command for linking libarchive
# V := LDFLAGS=$(PWD)/$(LARCHIVE_LIB) v -cflags '-I$(PWD)/$(LARCHIVE_DIR) -I $(PWD)/$(LARCHIVE_DIR)'
V := v -showcc
V := v
all: vieter