Skip to content

Commit

Permalink
Add build for tags
Browse files Browse the repository at this point in the history
This will create a release from a tag
  • Loading branch information
mich181189 committed Dec 3, 2021
1 parent 1909326 commit 085a7c7
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/build-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,27 @@ jobs:
platforms: linux/amd64
push: true
tags: |
docker.pkg.github.com/londonhackspace/kube-auth-handler/server:${GITHUB_REF##*/}
docker.pkg.github.com/londonhackspace/kube-auth-handler/server:${GITHUB_REF##*/}
build_client:
name: Build Clients
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: 1.16.1
- name: build stuff
working-directory: ./auth-client
run: |
env GOOS=linux GOARCH=amd64 go build -o ldap-kube-auth_linux_amd64
env GOOS=linux GOARCH=arm go build -o ldap-kube-auth_linux_arm
env GOOS=linux GOARCH=arm64 go build -o ldap-kube-auth_linux_arm64
env GOOS=darwin GOARCH=amd64 go build -o ldap-kube-auth_macos_amd64
env GOOS=darwin GOARCH=arm64 go build -o ldap-kube-auth_macos_arm64
env GOOS=windows GOARCH=amd64 go build -o ldap-kube-auth_windows_amd64.exe
- name: Release version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ github.event.issue.html_url }}
run: gh release create ${GITHUB_REF##*/} ldap-kube-auth_*

0 comments on commit 085a7c7

Please sign in to comment.