Skip to content

Commit

Permalink
github-ci: publish new release
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Gaikwad <[email protected]>
  • Loading branch information
gaikwadabhishek committed Dec 20, 2023
1 parent 729a22e commit 9b11945
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/publish-release.yml
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/*

0 comments on commit 9b11945

Please sign in to comment.