Skip to content

Commit 04b7b04

Browse files
committed
fixes
Signed-off-by: Harmen Stoppels <[email protected]>
1 parent 01b0f10 commit 04b7b04

File tree

3 files changed

+18
-45
lines changed

3 files changed

+18
-45
lines changed

.github/workflows/clingo.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ jobs:
6464
spack python clingo/install_clingo.py
6565
spack buildcache push --unsigned ./binary-mirror clingo-bootstrap
6666
67+
- name: Push to OCI registry
68+
env:
69+
GITHUB_ACTOR: ${{ github.actor }}
70+
GITHUB_TOKEN: ${{ github.token }}
71+
run: |
72+
. spack/share/spack/setup-env.sh
6773
spack mirror add \
6874
--oci-username-variable GITHUB_ACTOR \
6975
--oci-password-variable GITHUB_TOKEN \
@@ -94,18 +100,22 @@ jobs:
94100

95101
- uses: docker/setup-buildx-action@v3
96102

97-
- name: set Dockerfile path
103+
- name: set base image
98104
run: |
99-
echo "DOCKERFILE=./clingo/Dockerfile.manylinux2014$([ '${{ matrix.python-version }}' = '3.14' ] \
100-
&& echo '-314')" >> $GITHUB_ENV
105+
if [ '${{ matrix.python-version }}' = '3.14' ]; then
106+
echo "BASE_IMAGE=quay.io/pypa/manylinux2014:2025.11.11-1" >> $GITHUB_ENV
107+
else
108+
echo "BASE_IMAGE=ghcr.io/spack/manylinux2014:v2024-10-16" >> $GITHUB_ENV
109+
fi
101110
102111
- uses: docker/build-push-action@v5
103112
with:
104-
file: ${{ env.DOCKERFILE }}
113+
file: ./clingo/Dockerfile.manylinux2014
105114
platforms: linux/${{ matrix.arch }}
106115
outputs: type=docker
107116
tags: clingo:latest
108-
build-Args: |
117+
build-args: |
118+
BASE_IMAGE=${{ env.BASE_IMAGE }}
109119
PYTHON_VERSION=${{ matrix.python-version }}
110120
GITHUB_ACTOR=${{ github.actor }}
111121
GITHUB_TOKEN=${{ github.token }}
@@ -116,7 +126,7 @@ jobs:
116126
117127
- uses: actions/upload-artifact@v5
118128
with:
119-
name: clingo_binary_mirror-linux-${{ matrix.arch}}-${{ matrix.python-version }}
129+
name: clingo_binary_mirror-linux-${{ matrix.arch }}-${{ matrix.python-version }}
120130
path: binary-mirror
121131

122132
clingo_json:

clingo/Dockerfile.manylinux2014

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM ghcr.io/spack/manylinux2014:v2024-10-16
1+
ARG BASE_IMAGE=ghcr.io/spack/manylinux2014:v2024-10-16
2+
FROM ${BASE_IMAGE}
23

34
ARG PYTHON_VERSION
45
ARG GITHUB_ACTOR

clingo/Dockerfile.manylinux2014-314

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)