Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dbadura committed Nov 19, 2024
1 parent 1ed8699 commit 1750176
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .github/scripts/upload_assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ set -o pipefail # prevents errors in a pipeline from being masked
REPOSITORY=${REPOSITORY:-kyma-project/busola}
RELEASE_TAG=${RELEASE_TAG?"Release tag is not defined"}
RELEASE_ID=${RELEASE_ID?"Release id is not defined"}
echo "release tag ${RELEASE_TAG}"


uploadFile() {
Expand All @@ -35,14 +34,11 @@ uploadFile() {
BUSOLA_K8S="busola.yaml"
generate_k8s() {
set -x
pwd
ls -l
cd resources
(cd base/web && kustomize edit set image busola-web=europe-docker.pkg.dev/kyma-project/prod/busola-web:"${RELEASE_TAG}")
(cd base/backend && kustomize edit set image busola-backend=europe-docker.pkg.dev/kyma-project/prod/busola-backend:"${RELEASE_TAG}")
kustomize build base/ > ../"${BUSOLA_K8S}"
cd -
pwd
}

echo "Updating github release with assets"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ jobs:
env:
RELEASE_TAG: ${{ github.event.inputs.name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_ID: ${{ steps.create-release.outputs.release_id }}
RELEASE_ID: ${{ steps.create-draft.outputs.release_id }}
run: ./.github/scripts/upload_assets.sh

- name: Publish release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_ID: ${{ steps.create-release.outputs.release_id }}
IS_LATEST_RELEASE: ${{ github.event.inputs.latest_release }}
RELEASE_ID: ${{ steps.create-draft.outputs.release_id }}
run: ./.github/scripts/publish_release.sh
outputs:
release_id: ${{ steps.create-release.outputs.release_id }}
release_id: ${{ steps.create-draft.outputs.release_id }}

0 comments on commit 1750176

Please sign in to comment.