Skip to content

Commit

Permalink
Merge pull request #7 from BuoyantIO/flynn/actions
Browse files Browse the repository at this point in the history
GitHub Actions!
  • Loading branch information
kflynn committed Mar 6, 2024
2 parents 3178837 + ebcc296 commit 03464a7
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Release

on:
push:
tags:
- 'v*.*.*'

permissions:
contents: write
packages: write

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}

- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20' # This needs to be a string!

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run goreleaser release
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run make push-chart
env:
HELM_REGISTRY: oci://ghcr.io/buoyantio
VERSION: ${{ steps.get_version.outputs.VERSION }}
run: make push-chart

0 comments on commit 03464a7

Please sign in to comment.