forked from pravega/zookeeper-operator
-
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.
fix: Add a manual release workflow and fix CI workflow. (#6)
- Loading branch information
1 parent
9d707c8
commit 0405884
Showing
2 changed files
with
58 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
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,43 @@ | ||
# workflow name | ||
name: Publish Release | ||
|
||
# on events | ||
on: | ||
workflow_dispatch: | ||
|
||
# jobs to run | ||
jobs: | ||
publish: | ||
name: Publish docker image | ||
runs-on: | ||
- ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Set up Go 1.21 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.21" | ||
id: go | ||
- name: Set up Go for root | ||
run: | | ||
sudo ln -sf `which go` `sudo which go` || true | ||
sudo go version | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
- name: get go version | ||
run: go version | ||
- name: Login to GHCR | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Pushing docker images | ||
run: sudo make push | ||
- name: Uploading binary files | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: zookeeper-exporter | ||
path: bin/zookeeper-exporter* |