Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
ci: Try to add OCI release step
Browse files Browse the repository at this point in the history
  • Loading branch information
John Doe committed Apr 20, 2022
1 parent 36f1d29 commit 849e4c3
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,16 @@ jobs:
app_version: "${{github.ref_name}}"
chart_version: "${{github.ref_name}}"

- name: Extract tag name
id: tag
uses: actions/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
return context.payload.ref.replace(/\/refs\/tags\//, '');
- name: Extract version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Push to ghcr.io
uses: appany/[email protected]
with:
name: sni-router
repository: riotkit-org
tag: "${{ steps.tag.outputs.result }}"
path: helm/sni-router # Default charts/{name}
tag: "${{ env.RELEASE_VERSION }}"
path: helm/sni-router
registry: ghcr.io
registry_username: __token__
registry_password: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 849e4c3

Please sign in to comment.