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

WIP: Passes texlive:base as artifact between jobs #18

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
26 changes: 24 additions & 2 deletions .github/workflows/build-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build base
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: .
push: false
tags: maxkratz/texlive:base
platforms: linux/amd64,linux/arm64,linux/arm/v7
outputs: type=docker,dest=/tmp/base.tar
- name: Upload base image as artifact
uses: actions/upload-artifact@v3
with:
name: base
path: /tmp/base.tar

build-image:
runs-on: [ubuntu-22.04]
Expand All @@ -38,8 +44,16 @@ jobs:
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Download base image from artifacts
uses: actions/download-artifact@v3
with:
name: base
path: /tmp
- name: Load base image
run: |
docker load --input /tmp/base.tar
- name: Build image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: ./${{ matrix.year }}
push: false
Expand All @@ -60,6 +74,14 @@ jobs:
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Download base image from artifacts
uses: actions/download-artifact@v3
with:
name: base
path: /tmp
- name: Load base image
run: |
docker load --input /tmp/base.tar
- name: Build image
uses: docker/build-push-action@v3
with:
Expand Down
Loading