-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.21 KB
/
publish.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
43
44
45
on:
push:
workflow_dispatch:
name: 🐳 Build & Publish Docker Image
jobs:
build-container:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: stock
- name: vtk
vtk: "True"
- name: python
python: "True"
- name: vtk-python
python: "True"
vtk: "True"
name: "🐳 Build Container (🐍: ${{ matrix.python || 'False' }}, 🧰: ${{ matrix.vtk || 'False' }})"
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🐋 Setup Buildx
uses: docker/setup-buildx-action@v3
- name: 🔐 Login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: ♻️ Publish Images
run: |
docker buildx build --tag vienna-builder --build-arg VTK="${{ matrix.vtk || 'False' }}" --build-arg PYTHON="${{ matrix.python || 'False' }}" --load .
docker image tag vienna-builder ghcr.io/viennatools/vienna-builder:${{ matrix.name }}
docker push ghcr.io/viennatools/vienna-builder:${{ matrix.name }}