diff options
| author | 2021-12-26 20:19:55 -0800 | |
|---|---|---|
| committer | 2021-12-26 20:19:55 -0800 | |
| commit | e899f2fb6e0785c8b4178b11d9efbd8025236a07 (patch) | |
| tree | b6f60a8ecbe3cd6a9c907b46ebbe0423e2be8248 | |
| parent | CI: use reusable workflows as jobs in main workflow (diff) | |
CI: use build-push-action to output an image tarball
load: true was already creating a tarball, but it was getting
immediately loaded. Since no other Docker builds run in this job,
it's useless to load it. The action can still be leveraged to create
the tarball instead of manually invoking `docker save`.
| -rw-r--r-- | .github/workflows/build.yaml | 5 | 
1 files changed, 1 insertions, 4 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 172d905..dfd33fc 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -64,9 +64,9 @@ jobs:            context: .            file: ./Dockerfile            push: false -          load: true            target: venv            build-args: DEV=1 +          outputs: type=docker,dest=image_artefact_snekbox-venv.tar            cache-from: |              type=local,src=/tmp/.buildx-cache              ghcr.io/python-discord/snekbox-base:latest @@ -76,9 +76,6 @@ jobs:        # Make the image available as an artefact so other jobs will be able to        # download it. -      - name: Save image as a tar archive -        run: docker save -o image_artefact_snekbox-venv.tar snekbox-venv -        - name: Upload image archive as an artefact          uses: actions/upload-artifact@v2          with:  |