Commit ae608508 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

CI: build arm64 packages

parent 1c016bc7
......@@ -55,8 +55,10 @@ build_sid:
- BASE=debian:sid
- img=`echo $BASE | sed s/:/_/`
- cd release/debian
- docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache
- docker run -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/amd64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/amd64 -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/arm64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/arm64 -v $PWD:/mount $img tar -c build | tar x
only:
- tags
artifacts:
......@@ -68,8 +70,10 @@ build_bookworm:
- BASE=debian:bookworm
- img=`echo $BASE | sed s/:/_/`
- cd release/debian
- docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache
- docker run -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/amd64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/amd64 -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/arm64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/arm64 -v $PWD:/mount $img tar -c build | tar x
only:
- tags
artifacts:
......@@ -81,8 +85,10 @@ build_bullseye:
- BASE=debian:bullseye
- img=`echo $BASE | sed s/:/_/`
- cd release/debian
- docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache
- docker run -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/amd64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/amd64 -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/arm64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/arm64 -v $PWD:/mount $img tar -c build | tar x
only:
- tags
artifacts:
......@@ -94,8 +100,10 @@ build_buster:
- BASE=debian:buster
- img=`echo $BASE | sed s/:/_/`
- cd release/debian
- docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache
- docker run -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/amd64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/amd64 -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/arm64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/arm64 -v $PWD:/mount $img tar -c build | tar x
only:
- tags
artifacts:
......@@ -107,8 +115,10 @@ build_bionic:
- BASE=ubuntu:bionic
- img=`echo $BASE | sed s/:/_/`
- cd release/debian
- docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache
- docker run -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/amd64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/amd64 -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/arm64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/arm64 -v $PWD:/mount $img tar -c build | tar x
only:
- tags
artifacts:
......@@ -120,8 +130,10 @@ build_focal:
- BASE=ubuntu:focal
- img=`echo $BASE | sed s/:/_/`
- cd release/debian
- docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache
- docker run -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/amd64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/amd64 -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/arm64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/arm64 -v $PWD:/mount $img tar -c build | tar x
only:
- tags
artifacts:
......@@ -133,8 +145,10 @@ build_hirsute:
- BASE=ubuntu:hirsute
- img=`echo $BASE | sed s/:/_/`
- cd release/debian
- docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache
- docker run -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/amd64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/amd64 -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/arm64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/arm64 -v $PWD:/mount $img tar -c build | tar x
only:
- tags
artifacts:
......@@ -146,8 +160,25 @@ build_impish:
- BASE=ubuntu:impish
- img=`echo $BASE | sed s/:/_/`
- cd release/debian
- docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache
- docker run -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/amd64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/amd64 -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/arm64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/arm64 -v $PWD:/mount $img tar -c build | tar x
only:
- tags
artifacts:
paths:
- release/debian/build/*
build_jammy:
script:
- BASE=ubuntu:jammy
- img=`echo $BASE | sed s/:/_/`
- cd release/debian
- docker buildx build --platform linux/amd64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/amd64 -v $PWD:/mount $img tar -c build | tar x
- docker buildx build --platform linux/arm64 --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img . --no-cache --load
- docker run --platform linux/arm64 -v $PWD:/mount $img tar -c build | tar x
only:
- tags
artifacts:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment