-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 695d7e5
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
name: 🐳 Build & Publish Docker Image | ||
|
||
jobs: | ||
build-container: | ||
runs-on: ubuntu-latest | ||
|
||
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 --load . | ||
docker buildx build --tag vienna-builder-vtk --build-arg VTK="True" --load . | ||
docker image tag vienna-builder ghcr.io/viennatools/vienna-builder:stock | ||
docker image tag vienna-builder-vtk ghcr.io/viennatools/vienna-builder:vtk | ||
docker push ghcr.io/viennatools/vienna-builder:stock | ||
docker push ghcr.io/viennatools/vienna-builder:vtk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM fedora:41 | ||
ARG VTK | ||
|
||
# Build dependencies | ||
|
||
RUN dnf install -y gcc gcc-c++ kernel-devel cmake ninja-build | ||
RUN dnf install -y git docker sed clang-tools-extra | ||
|
||
# Conditionally pre-install VTK | ||
|
||
RUN if [ "$VTK" = "True" ]; then \ | ||
dnf install -y vtk vtk-devel; \ | ||
fi |