operator: Update github release workflow #12
Workflow file for this run
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
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.22.x' | |
- 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 and helm chart | |
run: | | |
pushd $GITHUB_WORKSPACE/operator | |
VERSION="${{ env.VERSION }}" IMG="${{ env.AISOPERATOR_IMAGE }}:${{ env.VERSION }}" make build-installer-helm | |
popd | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: operator/dist/* |