Skip to content

Commit

Permalink
Merge pull request #80 from kyma-project/update/readme
Browse files Browse the repository at this point in the history
update workflows
  • Loading branch information
szeort authored Oct 9, 2024
2 parents a11c2ea + 3406bee commit 98e7d9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-korifi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

env:
REGISTRY: ghcr.io
V_KORIFI: '0.11.2'
KORIFI_REF: '0.11.2'
IMAGE_NAME: ${{ github.repository }}

jobs:
Expand All @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: unified-runtime/korifi-trinity
ref: v${{ env.V_KORIFI }}
ref: ${{ vars.KORIFI_REF }}
github-server-url: 'https://github.tools.sap'
token: ${{ secrets.KORIFI_TRINITY_TOKEN }}
path: '.korifi'
Expand All @@ -38,14 +38,14 @@ jobs:

- name: Create korifi release artifacts
env:
VERSION: ${{ env.V_KORIFI }}
VERSION: ${{ vars.KORIFI_REF }}
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 }}
../scripts/create-korifi-release.sh ${{ vars.KORIFI_REF }}

3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ endif
release: manifests kustomize
rm -rf release-$(VERSION)
mkdir -p release-$(VERSION)
IMG_SHA=$(docker inspect --format='{{index .RepoDigests 0}}' ${REGISTRY}/${IMG})
cp default-cr.yaml release-$(VERSION)/cfapi-default-cr.yaml
$(KUSTOMIZE) build config/crd > release-$(VERSION)/cfapi-crd.yaml
pushd config/manager && $(KUSTOMIZE) edit set image controller=${REGISTRY}/${IMG} && popd
pushd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG_SHA) && popd
$(KUSTOMIZE) build config/default > release-$(VERSION)/cfapi-manager.yaml

##@ Deployment
Expand Down

0 comments on commit 98e7d9c

Please sign in to comment.