forked from vieter-v/vieter
Compare commits
10 Commits
b86c6b5e16
...
e1ca4085ff
| Author | SHA1 | Date |
|---|---|---|
|
|
e1ca4085ff | |
|
|
f064cd6549 | |
|
|
b43eb07f8d | |
|
|
2dd9ea4553 | |
|
|
87f7caea2b | |
|
|
759dfa6b08 | |
|
|
964fefc7ee | |
|
|
ce1e46e2d6 | |
|
|
72699725d0 | |
|
|
5b031b12ce |
|
|
@ -1,7 +1,12 @@
|
||||||
|
matrix:
|
||||||
|
PLATFORM:
|
||||||
|
- linux/amd64
|
||||||
|
- linux/arm64
|
||||||
|
|
||||||
# These checks already get performed on the feature branches
|
# These checks already get performed on the feature branches
|
||||||
branches:
|
branches:
|
||||||
exclude: [ main, dev ]
|
exclude: [ main, dev ]
|
||||||
platform: linux/amd64
|
platform: $PLATFORM
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
vieter:
|
vieter:
|
||||||
|
|
|
||||||
|
|
@ -3,24 +3,25 @@ platform: linux/amd64
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
dev:
|
dev:
|
||||||
image: plugins/docker
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
settings:
|
settings:
|
||||||
repo: chewingbever/vieter
|
repo: chewingbever/vieter
|
||||||
tag: dev
|
tag: dev
|
||||||
|
platforms: [ linux/arm64/v8, linux/amd64 ]
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
branch: dev
|
branch: dev
|
||||||
|
|
||||||
release:
|
release:
|
||||||
image: plugins/docker
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
settings:
|
settings:
|
||||||
repo: chewingbever/vieter
|
repo: chewingbever/vieter
|
||||||
tag:
|
tag:
|
||||||
- latest
|
- latest
|
||||||
- $CI_COMMIT_TAG
|
- $CI_COMMIT_TAG
|
||||||
mtu: 1000
|
platforms: [ linux/arm64/v8, linux/amd64 ]
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
branch: main
|
branch: main
|
||||||
|
|
|
||||||
|
|
@ -5,17 +5,15 @@ WORKDIR /app
|
||||||
# Copy over source code & build production binary
|
# Copy over source code & build production binary
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
COPY Makefile ./
|
COPY Makefile ./
|
||||||
RUN make prod
|
|
||||||
|
ENV LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static'
|
||||||
|
RUN v -o pvieter -cflags "-O3" src
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:3.15
|
FROM alpine:3.15
|
||||||
|
|
||||||
ENV REPO_DIR=/data
|
ENV REPO_DIR=/data
|
||||||
|
|
||||||
RUN apk update && \
|
|
||||||
apk add --no-cache \
|
|
||||||
libarchive
|
|
||||||
|
|
||||||
COPY --from=builder /app/pvieter /usr/local/bin/vieter
|
COPY --from=builder /app/pvieter /usr/local/bin/vieter
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/local/bin/vieter" ]
|
ENTRYPOINT [ "/usr/local/bin/vieter" ]
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -8,7 +8,7 @@ LARCHIVE_LIB := $(LARCHIVE_DIR)/libarchive/libarchive.so
|
||||||
|
|
||||||
# Custom V command for linking libarchive
|
# Custom V command for linking libarchive
|
||||||
# V := LDFLAGS=$(PWD)/$(LARCHIVE_LIB) v -cflags '-I$(PWD)/$(LARCHIVE_DIR) -I $(PWD)/$(LARCHIVE_DIR)'
|
# V := LDFLAGS=$(PWD)/$(LARCHIVE_LIB) v -cflags '-I$(PWD)/$(LARCHIVE_DIR) -I $(PWD)/$(LARCHIVE_DIR)'
|
||||||
V := v
|
V := v -showcc
|
||||||
|
|
||||||
all: vieter
|
all: vieter
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue