Added woodpecker config & Dockerfile
ci/woodpecker/push/woodpecker Pipeline was successful Details

Jef Roosens 2022-04-15 09:52:10 +02:00
parent 566f150b24
commit b5a282551f
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 50 additions and 0 deletions

17
.woodpecker.yml 100644
View File

@ -0,0 +1,17 @@
# This is the branch that contains my patches, it's basically the master
platform: linux/amd64
branch: master
pipeline:
publish:
image: woodpeckerci/plugin-docker-buildx
secrets: [ docker_username, docker_password ]
settings:
repo: chewingbever/vlang
tag: latest
dockerfile: Dockerfile.builder
platforms: [ linux/arm/v7, linux/arm64/v8, linux/amd64 ]
# The build can run every time, because we should only push when there's
# actual changes
when:
event: push

33
Dockerfile.builder 100644
View File

@ -0,0 +1,33 @@
FROM alpine:3.12
ARG TARGETPLATFORM
WORKDIR /opt/vlang
ENV VVV /opt/vlang
ENV PATH /opt/vlang:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV VFLAGS -cc gcc
ENV V_PATH /opt/vlang/v
RUN ln -s /opt/vlang/v /usr/bin/v && \
apk --no-cache add \
git make gcc curl openssl \
musl-dev \
openssl-libs-static openssl-dev \
zlib-static bzip2-static xz-dev expat-static zstd-static lz4-static \
sqlite-static sqlite-dev \
libx11-dev glfw-dev freetype-dev \
libarchive-static libarchive-dev \
gc-dev \
diffutils
RUN git clone -b patches https://git.rustybever.be/Chewing_Bever/vieter-v /opt/vlang && \
make && \
v -version
RUN if [ "$TARGETPLATFORM" = 'linux/amd64' ]; then \
wget -O /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc && \
chmod +x /usr/local/bin/mc ; \
fi
CMD ["v"]