Skip to content

Commit

Permalink
fix: hacks
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Rabbito <[email protected]>
  • Loading branch information
anthr76 committed Jun 28, 2024
1 parent a1dcf35 commit 4ffbf88
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/charts-publish-oci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Charts: Publish to GHCR OCI"

on:
release:
types: [published]
workflow_dispatch: {}

jobs:
publish-charts:
name: Publish chart
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

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

- name: Install Helm
uses: azure/setup-helm@v4

- name: Package & Push Helm Charts
shell: bash
run: |
helm package chart/tailscale-derp --dependency-update
pkg=$(ls tailscale-derp-*.tgz)
helm push "${pkg}" oci://ghcr.io/${{ github.repository }}/chart
21 changes: 21 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Release"

on:
workflow_dispatch: {}
push:
branches: [main]

jobs:
release:
name: Release
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-22.04
steps:
- name: release
uses: googleapis/release-please-action@v4
id: release
with:
config-file: .github/release-please-config.json
manifest-file: .github/.release-please-manifest.json

0 comments on commit 4ffbf88

Please sign in to comment.