Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
29rou authored Mar 19, 2024
1 parent 84ccc96 commit e892b31
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,15 @@ jobs:
echo "Status: ${{ steps.buildx.outputs.status }}"
echo "Flags: ${{ steps.buildx.outputs.flags }}"
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
- name: docker image prune --force
run: |
docker image prune --force
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
outputs: type=image,push=true,compression=uncompressed
outputs: type=image,push=true,compression=gzip,compression-level=9
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
target: openjij-builder
Expand Down Expand Up @@ -108,6 +111,9 @@ jobs:
buildkitd-flags: --debug
config: .github/buildkitd.toml
install: true
- name: docker image prune --force
run: |
docker image prune --force
- name: Inspect builder
run: |
echo "Name: ${{ steps.buildx.outputs.name }}"
Expand All @@ -120,7 +126,7 @@ jobs:
with:
context: .
push: true
outputs: type=image,push=true,compression=uncompressed
outputs: type=image,push=true,compression=gzip,compression-level=9
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
target: openjij-builder-old
Expand Down

0 comments on commit e892b31

Please sign in to comment.