Attempt at building multi-platform builder

main
Jef Roosens 2022-01-14 19:59:30 +01:00
parent b5d8e7120d
commit 3f9e9a82dc
Signed by untrusted user: Jef Roosens
GPG Key ID: 955C0660072F691F
5 changed files with 18 additions and 13 deletions

View File

@ -1,6 +1,7 @@
# 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
pipeline: pipeline:
vieter: vieter:

View File

@ -1,13 +1,15 @@
branches: dev # branches: dev
platform: linux/amd64
pipeline: pipeline:
publish: publish:
image: plugins/docker image: woodpeckerci/plugin-docker-buildx
secrets: [ docker_username, docker_password ] secrets: [ docker_username, docker_password ]
settings: settings:
repo: chewingbever/vlang repo: chewingbever/vlang
tag: latest tag: latest
dockerfile: Dockerfile.builder dockerfile: Dockerfile.builder
platforms: [ linux/arm/v7, linux/arm64/v8, linux/amd64 ]
when: when:
event: push event: push
path: Dockerfile.builder path: Dockerfile.builder

View File

@ -1,6 +1,7 @@
# 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
pipeline: pipeline:
lint: lint:

View File

@ -1,4 +1,5 @@
branches: [main, dev] branches: [main, dev]
platform: linux/amd64
pipeline: pipeline:
dev: dev:

View File

@ -8,9 +8,9 @@ ENV VVV /opt/vlang
ENV PATH /opt/vlang:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ENV PATH /opt/vlang:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV VFLAGS -cc gcc ENV VFLAGS -cc gcc
RUN mkdir -p /opt/vlang && ln -s /opt/vlang/v /usr/bin/v RUN mkdir -p /opt/vlang && \
ln -s /opt/vlang/v /usr/bin/v && \
RUN apk --no-cache add \ apk --no-cache add \
git make upx gcc bash \ git make upx gcc bash \
musl-dev \ musl-dev \
openssl-libs-static openssl-dev \ openssl-libs-static openssl-dev \