Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ jobs:
runs-on: ubuntu-latest
needs: prepare
environment: ${{ needs.prepare.outputs.env_name }}
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -86,6 +88,13 @@ jobs:
username: ${{ vars.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}

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

- name: Build & push container image
id: build-container
env:
Expand All @@ -94,3 +103,12 @@ jobs:
run: |
docker build --build-arg="VERSION=$IMAGE_TAG" -t $REPOSITORY:$IMAGE_TAG .
docker push $REPOSITORY:$IMAGE_TAG

- name: Build & push container image, ghcr.io
id: build-container
env:
REPOSITORY: ghcr.io/${{ github.repository_owner }}/helm-charts-oci-proxy
IMAGE_TAG: ${{ needs.prepare.outputs.tag_name }}
run: |
docker build --build-arg="VERSION=$IMAGE_TAG" -t $REPOSITORY:$IMAGE_TAG .
docker push $REPOSITORY:$IMAGE_TAG
7 changes: 7 additions & 0 deletions .github/workflows/publish-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
jobs:
publish-chart:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand All @@ -33,6 +35,11 @@ jobs:
- name: Login to Registry
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | helm registry login ${{ vars.REGISTRY_ADDR }} --username ${{ vars.REGISTRY_USERNAME }} --password-stdin

- name: Login to Registry, ghcr.io
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io --username ${{ github.repository_owner }} --password-stdin

- name: Push Packaged Chart to Registry
run: helm push ./tmp/* oci://${{ vars.REGISTRY_ADDR }}/library

- name: Push Packaged Chart to Registry, ghcr.io
run: helm push ./tmp/* oci://ghcr.io/${{ github.repository_owner }}/chart