From 085a7c786aa745d87168dcc78e34625ed4cb85c6 Mon Sep 17 00:00:00 2001 From: Michael Cullen Date: Fri, 3 Dec 2021 03:56:53 +0100 Subject: [PATCH] Add build for tags This will create a release from a tag --- .github/workflows/build-tags.yaml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-tags.yaml b/.github/workflows/build-tags.yaml index f807cf1..f64247c 100644 --- a/.github/workflows/build-tags.yaml +++ b/.github/workflows/build-tags.yaml @@ -23,4 +23,27 @@ jobs: platforms: linux/amd64 push: true tags: | - docker.pkg.github.com/londonhackspace/kube-auth-handler/server:${GITHUB_REF##*/} \ No newline at end of file + 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_* \ No newline at end of file