ci build these
ci/woodpecker/manual/build-docker Pipeline was successful Details

This commit is contained in:
Floatingghost 2024-01-01 20:55:15 +00:00
parent 70fb1706c7
commit b86845cd69
4 changed files with 50 additions and 4 deletions

View File

@ -0,0 +1,41 @@
platform: linux/amd64
matrix:
ELIXIR_VERSION:
- 1.14.5
- 1.15.7
OTP_VERSION:
- 25.3.2.8
- 26.2.1
include:
- ELIXIR_VERSION: 1.14.5
OTP_VERSION: 25.3.2.8
- ELIXIR_VERSION: 1.15.7
OTP_VERSION: 25.3.2.8
- ELIXIR_VERSION: 1.15.7
OTP_VERSION: 26.2.1
- ELIXIR_VERSION: 1.16.0
OTP_VERSION: 26.2.1
variables:
- &on-release
when:
event:
- push
- tag
branch:
- main
pipeline:
build:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
<<: *on-release
settings:
repo: akkoma/ci-base
dockerfile: Dockerfile
platforms: linux/amd64,linux/arm64/v8
tag: test
build_args:
- TAG: ${ELIXIR_VERSION}-erlang-${OTP_VERSION}-alpine-3.18.4

View File

@ -1,5 +1,5 @@
#FROM hexpm/elixir:1.15.4-erlang-25.3.2.5-alpine-3.18.2
FROM hexpm/elixir:1.14.3-erlang-25.2.2-alpine-3.18.0
ARG TAG
FROM docker.io/hexpm/elixir:${TAG}
RUN apk update
RUN apk add git gcc g++ musl-dev make cmake file-dev rclone wget zip imagemagick ffmpeg perl-image-exiftool exiftool
RUN mkdir /src

4
build-all.sh Executable file
View File

@ -0,0 +1,4 @@
./build.sh 1.14-otp25 1.14.5-erlang-25.3.2.8-alpine-3.18.4
./build.sh 1.15-otp25 1.15.7-erlang-25.3.2.8-alpine-3.18.4
./build.sh 1.15-otp26 1.15.7-erlang-26.2.1-alpine-3.18.4
./build.sh 1.16-otp26 1.16.0-erlang-26.2.1-alpine-3.18.4

View File

@ -1,2 +1,3 @@
docker build -t akkoma/ci-base:$1 --build-arg=version=$1 .
docker push akkoma/ci-base:$1
echo "Building $1 using image tag $2"
docker build -t docker.io/akkoma/ci-base:$1 --build-arg=version=$1 --build-arg=TAG=$2 .
docker push docker.io/akkoma/ci-base:$1