forked from vieter-v/vieter
Switchd to hyper-minimal docker image
parent
d2af65cbce
commit
3fc22bf078
|
@ -2,12 +2,14 @@
|
||||||
# because it has to be the target of the pull request
|
# because it has to be the target of the pull request
|
||||||
branches: dev
|
branches: dev
|
||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
|
depends_on: build
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
dryrun:
|
dryrun:
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
settings:
|
settings:
|
||||||
|
dockerfile: Dockerfile.ci
|
||||||
repo: chewingbever/vieter
|
repo: chewingbever/vieter
|
||||||
tag: dev
|
tag: dev
|
||||||
platforms: [ linux/arm/v7, linux/arm64/v8, linux/amd64 ]
|
platforms: [ linux/arm/v7, linux/arm64/v8, linux/amd64 ]
|
||||||
|
|
|
@ -6,9 +6,12 @@ pipeline:
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
settings:
|
settings:
|
||||||
|
dockerfile: Dockerfile.ci
|
||||||
repo: chewingbever/vieter
|
repo: chewingbever/vieter
|
||||||
tag: dev
|
tag: dev
|
||||||
platforms: [ linux/arm/v7, linux/arm64/v8, linux/amd64 ]
|
platforms: [ linux/arm/v7, linux/arm64/v8, linux/amd64 ]
|
||||||
|
args:
|
||||||
|
- CI_COMMIT_SHA
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
branch: dev
|
branch: dev
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# Yeah so this only works on tags so we'll worry about this later
|
# Yeah so this only works on tags so we'll worry about this later
|
||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
branches: main
|
branches: main
|
||||||
|
depends_on: build
|
||||||
|
|
||||||
# We need the entire repo in order for the release names to work
|
# We need the entire repo in order for the release names to work
|
||||||
skip_clone: true
|
skip_clone: true
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
# vim: ft=dockerfile
|
||||||
|
# This image just has the required tools to download the binaries
|
||||||
|
FROM chewingbever/vlang:latest AS builder
|
||||||
|
|
||||||
|
ARG TARGETPLATFORM
|
||||||
|
ARG CI_COMMIT_SHA
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN curl \
|
||||||
|
-o vieter \
|
||||||
|
"https://s3.rustybever.be/vieter/commits/${CI_COMMIT_SHA}/vieter-$(echo "${TARGETPLATFORM}" | sed 's:/:-:g')" && \
|
||||||
|
chmod +x vieter
|
||||||
|
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
|
||||||
|
COPY --from=builder /app/vieter /bin/vieter
|
||||||
|
|
||||||
|
ENTRYPOINT ["/bin/vieter"]
|
Loading…
Reference in New Issue