Tighten RBAC (#130) #77
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: Release | |
on: | |
push: | |
branches-ignore: | |
- '*' | |
tags: | |
- '*' | |
env: | |
REGISTRY: ghcr.io | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker Login | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Push Images | |
run: make touch all images -e RELEASE=1 VERSION=${{ github.ref_name }} | |
# - name: Build Documentation | |
# run: sudo apt -y install wbritish && go run github.com/unikorn-cloud/core/hack/docs -o docs/server-api.md | |
- name: Create Artefacts | |
run: | | |
cp bin/amd64-linux/kubectl-unikorn kubectl-unikorn-amd64-linux | |
cp bin/arm64-linux/kubectl-unikorn kubectl-unikorn-arm64-linux | |
cp bin/arm64-darwin/kubectl-unikorn kubectl-unikorn-arm64-darwin | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Release Helm Chart | |
uses: unikorn-cloud/chart-release-action@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
name: Release ${{ github.ref_name }} | |
tag_name: ${{ github.ref_name }} | |
files: | | |
kubectl-unikorn-amd64-linux | |
kubectl-unikorn-arm64-linux | |
kubectl-unikorn-arm64-darwin | |
cmd/kubectl-unikorn/kubectl_complete-unikorn.bash | |
cmd/kubectl-unikorn/kubectl_complete-unikorn.zsh |