Skip to content

Commit

Permalink
Share built debuerreotype image
Browse files Browse the repository at this point in the history
Signed-off-by: You-Sheng Yang <[email protected]>
  • Loading branch information
vicamo committed May 7, 2024
1 parent 8308e79 commit 63b090e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,33 @@ jobs:
echo "codenames=${codenames}" | tee -a "${GITHUB_OUTPUT}"
debuerreotype:
runs-on: ubuntu-latest
steps:
- name: Checkout Debuerreotype
uses: actions/checkout@v4
with:
fetch-depth: 1
repository: ${{ github.repository }}
ref: debuerreotype

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: v0.12.0
- name: Build and push
uses: docker/build-push-action@v5
with:
context: '.'
outputs: type=docker,dest=/tmp/debuerreotype.tar
tags: local/debuerreotype:latest

- name: Upload debuerreotype image tarball
uses: actions/upload-artifact@v4
with:
name: debuerreotype
path: /tmp/debuerreotype.tar

per-suite:
name: Per Suite
needs:
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/per-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ jobs:
with:
version: v0.12.0

- name: Download debuerreotype image tarball
uses: actions/download-artifact@v4
with:
name: debuerreotype
path: /tmp
- name: Load debuerreotype image
run: |
docker load --input /tmp/debuerreotype.tar
docker images ls -a
- name: Checkout Debuerreotype
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -111,7 +121,8 @@ jobs:
args+=(--arch "${ARCH}")
ret=0
./docker-run.sh "./examples/${DISTRO}.sh" "${args[@]}" \
./docker-run.sh --no-build --image local/debuerreotype:latest \
"./examples/${DISTRO}.sh" "${args[@]}" \
output "${CODENAME}" "@${epoch}" || ret=$?
if [[ ${ret} -eq 0 ]]; then
if [ -n "${KNOWN_FAILURE}" ]; then
Expand Down

0 comments on commit 63b090e

Please sign in to comment.