generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
102 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: Release Draft Workflow | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
|
||
env: | ||
V_KORIFI: '0.11.2' | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build: | ||
runs-on: [ self-hosted ] | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
attestations: write | ||
id-token: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Checkout Korifi-Trinity | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: unified-runtime/korifi-trinity | ||
ref: v${{ env.V_KORIFI }} | ||
github-server-url: 'https://github.tools.sap' | ||
token: ${{ secrets.KORIFI_TRINITY_TOKEN }} | ||
path: '.korifi' | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create korifi release artifacts | ||
env: | ||
VERSION: ${{ env.V_KORIFI }} | ||
DOCKER_REGISTRY: ${{ env.REGISTRY }} | ||
DOCKER_REGISTRY_USER: ${{ github.actor }} | ||
DOCKER_REGISTRY_PASS: ${{ secrets.GITHUB_TOKEN }} | ||
shell: bash | ||
working-directory: '.korifi' | ||
run: | | ||
../scripts/create-korifi-release.sh ${{ env.V_KORIFI }} | ||
- name: set version | ||
run: echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT | ||
id: version | ||
|
||
- name: docker build | ||
run: VERSION=${{ steps.version.outputs.version }} make docker-build | ||
|
||
- name: docker-push | ||
run: VERSION=${{ steps.version.outputs.version }} make docker-push | ||
|
||
- name: prepare release artifacts | ||
run: VERSION=${{ steps.version.outputs.version }} make release | ||
|
||
- name: Create draft release | ||
env: | ||
VERSION: ${{ steps.version.outputs.version }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
shell: bash | ||
run: | | ||
gh release create "${VERSION}" --draft --notes-file RELEASE.md | ||
- name: Upload release artifacts | ||
env: | ||
VERSION: ${{ steps.version.outputs.version }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
shell: bash | ||
run: | | ||
gh release upload "${VERSION}" "./release-${VERSION}/cfapi-default-cr.yaml" | ||
gh release upload "${VERSION}" "./release-${VERSION}/cfapi-crd.yaml" | ||
gh release upload "${VERSION}" "./release-${VERSION}/cfapi-manager.yaml" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.