Skip to content

Commit

Permalink
Switch around the container image build to run outside, allow for the…
Browse files Browse the repository at this point in the history
… release to be updated with each binary
  • Loading branch information
CerealBoy committed Apr 15, 2024
1 parent d073f86 commit acc81d7
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,21 @@ jobs:
with:
name: binary-amd64-${{ matrix.os }}
path: bin/roadie-${{ matrix.os }}-amd64
# Could potentially use saadmk11/changelog-ci@v1.1.2 to automate the release body
- name: 'Create Github Release'
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: 'bin/*'
omitBody: true

# The container image build doesn't depend on any steps outside the build process itself, run in parallel
container:
runs-on: ubuntu-latest
name: 'Build Container Image'
steps:
- name: 'Setup Docker buildx'
uses: docker/setup-buildx-action@v3
- name: 'Login to Docker Hub'
uses: docker/login-action@v3
with:
Expand All @@ -52,13 +66,8 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: 'Create Github Release'
uses: ncipollo/release-action@v1
with:
artifacts: 'bin/*'
omitBody: true

0 comments on commit acc81d7

Please sign in to comment.