Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share built debuerreotype image #62

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,37 @@ 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:
- debuerreotype
- matrix
strategy:
fail-fast: false
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
Loading