-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Abhishek Gaikwad <[email protected]>
- Loading branch information
1 parent
729a22e
commit 9b11945
Showing
1 changed file
with
44 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Publish ais-k8s release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
env: | ||
AISOPERATOR_IMAGE: 'aistorage/ais-operator' | ||
VERSION: ${{ github.ref_name }} | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '>=1.21.0' | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: make aisoperator image | ||
run: | | ||
pushd $GITHUB_WORKSPACE/operator | ||
IMG="${{ env.AISOPERATOR_IMAGE }}:${{ env.VERSION }}" make docker-build docker-push | ||
popd | ||
- name: make operator yaml file | ||
run: | | ||
pushd $GITHUB_WORKSPACE/operator | ||
make kustomize | ||
VERSION="${{ env.VERSION }}" IMG="${{ env.AISOPERATOR_IMAGE }}:${{ env.VERSION }}" make bundle-manifests | ||
popd | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: operator/dist/* |