forked from vieter-v/vieter
Compare commits
No commits in common. "e1ca4085ffb0387d44e0b09994e7f1cb4a2dfe20" and "b86c6b5e16b59f536d0d2fd06e0b2663135e00f3" have entirely different histories.
e1ca4085ff
...
b86c6b5e16
|
|
@ -1,12 +1,7 @@
|
|||
matrix:
|
||||
PLATFORM:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
|
||||
# These checks already get performed on the feature branches
|
||||
branches:
|
||||
exclude: [ main, dev ]
|
||||
platform: $PLATFORM
|
||||
platform: linux/amd64
|
||||
|
||||
pipeline:
|
||||
vieter:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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" ]
|
||||
|
|
|
|||
Loading…
Reference in New Issue