-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch around the container image build to run outside, allow for the…
… release to be updated with each binary
- Loading branch information
Showing
1 changed file
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,21 @@ jobs: | |
with: | ||
name: binary-amd64-${{ matrix.os }} | ||
path: bin/roadie-${{ matrix.os }}-amd64 | ||
# Could potentially use saadmk11/[email protected] 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: | ||
|
@@ -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 | ||
|