Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
run multi arch builds serially
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
  • Loading branch information
jkneubuh committed Dec 7, 2022
1 parent c365304 commit 6346c3c
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
tags: [ v2.* ]

env:
VERSION: ${{ github.ref_name }}
GO_VER: 1.18.7
ALPINE_VER: 3.16
DOCKER_REGISTRY: ghcr.io
Expand Down Expand Up @@ -49,13 +50,13 @@ jobs:
run: ./ci/scripts/create_binary_package.sh
env:
TARGET: ${{ matrix.target }}-${{ matrix.arch }}
BASE_VERSION: ${{ github.ref_name }}
RELEASE: ${{ github.ref_name }}
BASE_VERSION: ${{ env.VERSION }}
RELEASE: ${{ env.VERSION }}
- name: Publish Release Artifact
uses: actions/upload-artifact@v3
with:
name: hyperledger-fabric-${{ matrix.target }}-${{ matrix.arch }}-${{ github.ref_name }}.tar.gz
path: release/${{ matrix.target }}-${{ matrix.arch }}/hyperledger-fabric-${{ matrix.target }}-${{ matrix.arch }}-${{ github.ref_name }}.tar.gz
name: hyperledger-fabric-${{ matrix.target }}-${{ matrix.arch }}-${{ env.VERSION }}.tar.gz
path: release/${{ matrix.target }}-${{ matrix.arch }}/hyperledger-fabric-${{ matrix.target }}-${{ matrix.arch }}-${{ env.VERSION }}.tar.gz


build-and-push-docker-images:
Expand Down Expand Up @@ -87,6 +88,11 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
config-inline: |
[worker.oci]
max-parallelism = 1
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -126,6 +132,7 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
BASE_VERSION=${{ env.VERSION }}
ALPINE_VER=${{ env.ALPINE_VER }}
GO_VER=${{ env.GO_VER }}
GO_TAGS=
Expand All @@ -147,6 +154,6 @@ jobs:
with:
allowUpdates: "true"
artifacts: "*.tar.gz/*.tar.gz"
bodyFile: release_notes/${{ github.ref_name }}.md
tag: ${{ github.ref_name }}
bodyFile: release_notes/${{ env.VERSION }}.md
tag: ${{ env.VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6346c3c

Please sign in to comment.