This repository has been archived by the owner on Sep 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c9d330
commit cf4d77a
Showing
5 changed files
with
83 additions
and
3 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.kubebuilder | ||
pomerium-operator | ||
**/debug.test | ||
dist/* | ||
bin/* |
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
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Release | ||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
release-binary: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: "golang:1.13" | ||
strategy: | ||
matrix: | ||
os: | ||
- darwin | ||
- linux | ||
arch: | ||
- amd64 | ||
steps: | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
|
||
- name: Install go-task | ||
run: curl -sL https://taskfile.dev/install.sh | sh | ||
|
||
- name: Release | ||
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} bin/task release | ||
|
||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: dist/* | ||
file_glob: true | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
|
||
release-docker: | ||
needs: | ||
- release-binary | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
|
||
- name: Get tag name | ||
id: tagName | ||
uses: olegtarasov/get-tag@v1 | ||
|
||
- name: Docker Publish - Release | ||
uses: zenato/docker-action@master | ||
continue-on-error: true | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USER }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
repository: pomerium/pomerium-operator | ||
tag: ${{ steps.tagName.outputs.tag }} | ||
|
||
- name: Docker Publish - Latest | ||
if: "!contains(steps.tagName.outputs.tag, 'rc')" | ||
uses: zenato/docker-action@master | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USER }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
repository: pomerium/pomerium-operator | ||
tag: latest |
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 |
---|---|---|
|
@@ -71,3 +71,5 @@ coverage.txt | |
/.kubebuilder | ||
.test*.yaml | ||
test*.yaml | ||
/dist/* | ||
/bin/* |
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