Skip to content

vmod adjustments

vmod adjustments #57

Workflow file for this run

name: Package all the things

Check failure on line 1 in .github/workflows/packages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/packages.yml

Invalid workflow file

(Line: 14, Col: 15): A mapping was not expected
on:
push:
branches:
- '**'
jobs:
build_varnish:
name: Varnish ${{ matrix.target }} ${{ matrix.arch }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: &matrix
arch:
- amd64
# - arm64
target:
# - debian-bookworm-deb
# - debian-bullseye-deb
- debian-trixie-deb
# - almalinux-8-rpm
- almalinux-9-rpm
- almalinux-10-rpm
# - amazonlinux-2023-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
PARAM_ARCH=${{ matrix.arch }}
PARAM_DIST=`echo ${{ matrix.target}} | cut -d- -f 1`
PARAM_RELEASE=`echo ${{ matrix.target }} | cut -d- -f 2`
EXT=`echo ${{ matrix.target }} | cut -d- -f 3`
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.target }}-${{ matrix.arch }}
path: packages/*/*/*
build_vmod:
needs: build_varnish
runs-on: ubuntu-latest
name: ${{ matrix.package }} ${{ matrix.target }} ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
<<: *matrix
# arch:
# - amd64
## - arm64
# target:
# - debian-trixie-deb
# - almalinux-9-rpm
# - almalinux-10-rpm
package:
- varnish-modules
- vmod-uuid
- vmod-cfg
- vmod-digest
- vmod-fileserver
- vmod-geoip2
- vmod-jq
- vmod-querystring
- vmod-redis
- vmod-reqwest
- vmod-rers
exclude:
# no mhash-devel
- target: almalinux-10-rpm
package: vmod-cfg
# no redis, need to switch to valkey
- target: almalinux-10-rpm
package: vmod-redis
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.target }}-${{ matrix.arch }}
path: packages
- name: Build
run: |
PACKAGE=${{ matrix.package }}
PARAM_ARCH=${{ matrix.arch }}
PARAM_DIST=`echo ${{ matrix.target}} | cut -d- -f 1`
PARAM_RELEASE=`echo ${{ matrix.target }} | cut -d- -f 2`
EXT=`echo ${{ matrix.target }} | cut -d- -f 3`
pwd
echo ===
ls
( cd $PACKAGE/; tar cvzf ../debian.tar.gz debian --dereference ; )
( cd $PACKAGE/; tar cvzf ../redhat.tar.gz redhat --dereference ; )
docker run \
--rm \
-e PARAM_ARCH=$PARAM_ARCH \
-e PARAM_DIST=$PARAM_DIST\
-e PARAM_RELEASE=$PARAM_RELEASE \
--workdir /workdir/$PACKAGE \
-v$(pwd):/workdir \
-v$(pwd)/packages:/deps \
-v$(pwd)/new_packages:/packages \
$PARAM_DIST:$PARAM_RELEASE \
/workdir/.circleci/make-$EXT-packages-vmod.sh