Skip to content

directory

directory #33

Workflow file for this run

name: Package all the things
on:
push:
branches:
- '**'
jobs:
build_varnish:
name: Building Varnish (${{ matrix.dist }}:${{ matrix.release }} for ${{ matrix.arch }})
runs-on: ubuntu-latest
strategy: &strategy
matrix:
# arch:
# - amd64
# - arm64
include:
- dist: debian
release: trixie
pkg: deb
- dist: almalinux
release: 10
pkg: rpm
# - dist: debian
# release: bullseye
# pkg: deb
# - dist: debian
# release: bookworm
# pkg: deb
# - dist: ubuntu
# release: jammy
# pkg: deb
# - dist: ubuntu
# release: noble
# pkg: deb
#
# - dist: almalinux
# release: 8
# pkg: rpm
# - dist: almalinux
# release: 9
# pkg: rpm
#
# - dist: amazonlinux
# release: 2023
# pkg: rpm
steps:
- name: Checkout Code
uses: actions/checkout@v5
with:
submodules: true
- name: Download Varnish
run: |
curl -L https://varnish-cache.org/downloads/varnish-8.0.0.tgz -o varnish-8.0.0.tar.gz
- name:
run: |
( cd varnish-cache/; tar cvzf ../debian.tar.gz debian --dereference ; )
( cd varnish-cache/; tar cvzf ../redhat.tar.gz redhat --dereference ; )
mkdir -p packages
EXT=${{ matrix.pkg }}
ARCH=${{ matrix.arch }}
PARAM_ARCH=amd64
PARAM_DIST=${{ matrix.dist }}
PARAM_RELEASE=${{ matrix.release }}
docker run \
--rm \
--security-opt seccomp=unconfined \
-e PARAM_ARCH=$PARAM_ARCH \
-e PARAM_DIST=$PARAM_DIST \
-e PARAM_RELEASE=$PARAM_RELEASE \
-v $(pwd):/varnish-cache \
$PARAM_DIST:$PARAM_RELEASE \
/varnish-cache/make-$EXT-packages.sh
ls packages/*/*/
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: varnish-${{ matrix.dist }}-${{ matrix.release }}
path: packages/*/*/*
build_vmod:
needs: build_varnish
runs-on: ubuntu-latest
name: Building varnish-modules (${{ matrix.dist }}:${{ matrix.release }} for ${{ matrix.arch }})
strategy: &strategy
matrix:
# arch:
# - amd64
# - arm64
include:
- dist: debian
release: trixie
pkg: deb
- dist: almalinux
release: 10
pkg: rpm
steps:
- name: Checkout Code
uses: actions/checkout@v5
with:
submodules: true
- name: Download a specific artifact
uses: actions/download-artifact@v4
with:
name: varnish-${{ matrix.dist }}-${{ matrix.release }}
path: packages
- name: Build
run: |
( cd varnish-modules/; tar cvzf ../debian.tar.gz debian --dereference ; )
( cd varnish-modules/; tar cvzf ../redhat.tar.gz redhat --dereference ; )
EXT=${{ matrix.pkg }}
ARCH=${{ matrix.arch }}
PARAM_ARCH=amd64
PARAM_DIST=${{ matrix.dist }}
PARAM_RELEASE=${{ matrix.release }}
docker run \
--rm \
-e PARAM_ARCH=$PARAM_ARCH \
-e PARAM_DIST=$PARAM_DIST\
-e PARAM_RELEASE=$PARAM_RELEASE \
--workdir /workdir/varnish-modules \
-v$(pwd):/workdir \
-v$(pwd)/packages:/deps \
-v$(pwd)/new_packages:/packages \
$PARAM_DIST:$PARAM_RELEASE \
/workdir/.circleci/make-$EXT-packages-vmod.sh