Skip to content

Commit

Permalink
Fix failures when publishing images to Ghcr
Browse files Browse the repository at this point in the history
When building several images, some of them fail with
'io: read/write on closed pipe' error and cause the whole job
to fail.
The issues seems to be in build-push-action:
docker/build-push-action#761
  • Loading branch information
Danielius1922 committed Jan 18, 2023
1 parent d7b1641 commit 6afd704
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/publishDockerImagesGhcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
build-and-publish-image:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: resource-aggregate
Expand Down Expand Up @@ -86,6 +87,9 @@ jobs:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: |
image=moby/buildkit:v0.10.6
- name: Log in to the Container registry
uses: docker/login-action@v2
Expand All @@ -96,7 +100,7 @@ jobs:

- name: Set vars.branch
id: vars
run: BRANCH=${GITHUB_REF#refs/*/} && echo ${BRANCH} && echo "::set-output name=branch::${BRANCH}"
run: BRANCH=${GITHUB_REF#refs/*/} && echo ${BRANCH} && echo "branch=${BRANCH}" >> $GITHUB_OUTPUT

- name: Extract metadata (tags, labels) for docker image
id: meta
Expand All @@ -115,6 +119,7 @@ jobs:
- name: Build and push docker image
uses: docker/build-push-action@v3
with:
# https://github.com/docker/build-push-action/issues/761
context: ./
platforms: linux/amd64,linux/arm64
builder: ${{ steps.buildx.outputs.name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/releaseHelmCharts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fetch-depth: 0
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Publish Helm chart
uses: stefanprodan/helm-gh-pages@master
with:
Expand Down

0 comments on commit 6afd704

Please sign in to comment.