Skip to content

Commit 7e6eb74

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

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.github/workflows/clingo.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ jobs:
6262
6363
spack python clingo/install_clingo.py
6464
spack buildcache push --unsigned ./binary-mirror clingo-bootstrap
65+
66+
spack mirror add \
67+
--oci-username-variable GITHUB_ACTOR \
68+
--oci-password-variable GITHUB_TOKEN \
69+
ghcr oci://ghcr.io/spack/bootstrap-buildcache-pr50
70+
spack buildcache push --unsigned oci clingo-bootstrap
71+
6572
- uses: actions/upload-artifact@v5
6673
with:
6774
name: clingo_binary_mirror-${{ matrix.runner[0] }}-${{ matrix.python-version }}
@@ -96,6 +103,8 @@ jobs:
96103
tags: clingo:latest
97104
build-Args: |
98105
PYTHON_VERSION=${{ matrix.python-version }}
106+
GITHUB_ACTOR=${{ github.actor }}
107+
GITHUB_TOKEN=${{ github.token }}
99108
100109
- run: |
101110
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 oci 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 oci clingo-bootstrap

0 commit comments

Comments
 (0)