-
Notifications
You must be signed in to change notification settings - Fork 1.8k
42 lines (42 loc) · 1.69 KB
/
devenv-images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build quantlib-devenv Docker images
on:
workflow_dispatch:
inputs:
boostVersion:
description: 'Boost version'
required: true
env:
ROLLING: noble
jobs:
docker-images:
runs-on: ubuntu-latest
strategy:
matrix:
tag: [lunar, mantic, noble, oracular]
steps:
- uses: actions/checkout@v4
- name: Build CI images
working-directory: dockerfiles
run: |
docker build -f ci.Dockerfile \
--build-arg tag=${{ matrix.tag }} \
--build-arg boost_version=${{ github.event.inputs.boostVersion }} \
--build-arg boost_dir=boost_$(echo "${{ github.event.inputs.boostVersion }}" | sed "s/\./_/g") \
-t ghcr.io/lballabio/quantlib-devenv:${{ matrix.tag }} .
docker tag ghcr.io/lballabio/quantlib-devenv:${{ matrix.tag }} ghcr.io/lballabio/quantlib-devenv:${{ matrix.tag }}-${{ github.event.inputs.boostVersion }}
if test "${{ matrix.tag }}" = "$ROLLING" ; then
docker tag ghcr.io/lballabio/quantlib-devenv:${{ matrix.tag }} ghcr.io/lballabio/quantlib-devenv:rolling
fi
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}
- name: Push Docker images
run: |
docker push ghcr.io/lballabio/quantlib-devenv:${{ matrix.tag }}-${{ github.event.inputs.boostVersion }}
docker push ghcr.io/lballabio/quantlib-devenv:${{ matrix.tag }}
if test "${{ matrix.tag }}" = "$ROLLING" ; then
docker push ghcr.io/lballabio/quantlib-devenv:rolling
fi