Skip to content

Commit

Permalink
push to github container registry with CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Jul 16, 2024
1 parent 507669d commit 8c358a3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/push-oci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ on:

jobs:
helm-push-to-OCI:
if: github.repository_owner == 'cryostatio'
permissions:
packages: write
contents: write
runs-on: ubuntu-latest
if: github.repository_owner == 'cryostatio'
steps:
- uses: actions/checkout@v4
with:
feth-depth: 0
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
Expand All @@ -32,6 +32,7 @@ jobs:
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: "true"
with:
charts_dir: charts
config: .github/helm-release-config.yml
Expand All @@ -41,11 +42,7 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get release version
id: release-version
run: |
echo "tag=v$(yq .version charts/cryostat/Chart.yaml)" >> $GITHUB_OUTPUT
- name: Push Charts to GHCR
- name: Push charts to GHCR
run: |
for pkg in .cr-release-packages/*.tgz; do
if [ -z "${pkg:-}" ]; then
Expand Down

0 comments on commit 8c358a3

Please sign in to comment.