Skip to content

Commit

Permalink
Publish microfabd binary (#106)
Browse files Browse the repository at this point in the history
Build and publish the microfabd binary in addition to the pre-canned docker image for use in other environments

Signed-off-by: James Taylor <jamest@uk.ibm.com>

Signed-off-by: James Taylor <jamest@uk.ibm.com>
  • Loading branch information
jt-nti authored Sep 1, 2022
1 parent 31417e6 commit 433bf77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,14 @@ jobs:
docker login -u ${DOCKER_HUB_USER_NAME} -p ${DOCKER_HUB_ACCESS_TOKEN}
docker push ibmcom/ibp-microfab:${VERSION}
docker push ibmcom/ibp-microfab:latest
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')
- name: Build Binary
run: go build -v -o bin/microfabd cmd/microfabd/main.go
- name: Package Binary
run: |
tar -C bin -czvf microfab-${RUNNER_OS}-${RUNNER_ARCH}.tgz microfabd
- name: Publish Binary to GitHub Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: microfab-*.tgz
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#

# Binaries for programs and plugins
/bin
*.exe
*.exe~
*.dll
Expand Down

0 comments on commit 433bf77

Please sign in to comment.