Skip to content

Commit

Permalink
ci: bypass PR's restrictions in workflows (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
derevnjuk committed Feb 29, 2024
1 parent 21ce9e9 commit 6f2005a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_PAT }}

- name: Set Node.js
uses: actions/setup-node@v3
Expand All @@ -29,15 +29,18 @@ jobs:
- name: Release a new version
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

- name: Setup Helm
uses: azure/setup-helm@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Login to GHCR
run: helm registry login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
run: echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io --username ${{ github.actor }} --password-stdin

- name: Package Chart
run: helm package .

- name: Push charts to GHCR
run: helm push ./sniffer-*.tgz "oci://ghcr.io/${{ github.repository_owner }}/sniffer-chart"
1 change: 1 addition & 0 deletions .helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ docs/*
.gitignore
CONTRIBUTING.md
test/*
node_modules/*

0 comments on commit 6f2005a

Please sign in to comment.