Skip to content

Commit dc92134

Browse files
committed
Attempt to push binaries to testing OCI location
1 parent abdf644 commit dc92134

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/clingo.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,17 @@ jobs:
5656
export PATH="$(brew --prefix bison):$PATH"
5757
. spack/share/spack/setup-env.sh
5858
59-
rm -rf $(spack location -p pod man)
60-
6159
spack config add "config:install_tree:padded_length:256"
6260
6361
spack python clingo/install_clingo.py
6462
spack buildcache push --unsigned ./binary-mirror clingo-bootstrap
63+
64+
spack mirror add \
65+
--oci-username-variable GITHUB_ACTOR \
66+
--oci-password-variable GITHUB_TOKEN \
67+
ghcr oci://ghcr.io/spack/bootstrap-buildcache-pr50
68+
spack buildcache push --unsigned ghcr clingo-bootstrap
69+
6570
- uses: actions/upload-artifact@v5
6671
with:
6772
name: clingo_binary_mirror-${{ matrix.runner[0] }}-${{ matrix.python-version }}
@@ -96,6 +101,8 @@ jobs:
96101
tags: clingo:latest
97102
build-Args: |
98103
PYTHON_VERSION=${{ matrix.python-version }}
104+
GITHUB_ACTOR=${{ github.actor }}
105+
GITHUB_TOKEN=${{ github.token }}
99106
100107
- run: |
101108
docker create --name clingo-c --platform linux/${{ matrix.arch }} clingo

clingo/Dockerfile.manylinux2014

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ RUN export PY_PATH=$(printf '%s' "$PYTHON_VERSION" | \
2929
&& SPACK_PYTHON=/opt/python/${PY_PATH}/bin/python3 spack python install_clingo.py
3030

3131
RUN spack buildcache push --unsigned ./binary-mirror $(spack --color=never find --hashes clingo-bootstrap)
32+
33+
RUN spack mirror add \
34+
--oci-username-variable GITHUB_ACTOR \
35+
--oci-password-variable GITHUB_TOKEN \
36+
ghcr oci://ghcr.io/spack/bootstrap-buildcache-pr50 && \
37+
spack buildcache push --unsigned ghcr clingo-bootstrap

clingo/Dockerfile.manylinux2014-314

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ RUN export PY_PATH=$(printf '%s' "$PYTHON_VERSION" | \
2828
&& SPACK_PYTHON=/opt/python/${PY_PATH}/bin/python3 spack python install_clingo.py
2929

3030
RUN spack buildcache push --unsigned ./binary-mirror $(spack --color=never find --hashes clingo-bootstrap)
31+
32+
RUN spack mirror add \
33+
--oci-username-variable GITHUB_ACTOR \
34+
--oci-password-variable GITHUB_TOKEN \
35+
ghcr oci://ghcr.io/spack/bootstrap-buildcache-pr50 && \
36+
spack buildcache push --unsigned ghcr clingo-bootstrap

0 commit comments

Comments
 (0)