Skip to content

Commit

Permalink
[workflow] update package paths (#15)
Browse files Browse the repository at this point in the history
* [workflow] update package paths

* update release tag
  • Loading branch information
skrishnan-sap authored Sep 12, 2023
1 parent 3d8a8d9 commit f41d338
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

analysis:
name: Analyze with Sonar Cloud
if: github.repository == 'sap/cap-operator-lifecycle'
if: github.repository_owner == 'sap'
needs: build
runs-on: ubuntu-22.04
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
id: get_version_from_container_reg
run: |
export GHCR_TOKEN=$(echo ${{ github.token }} | base64)
echo "version=$(curl -H "Authorization: Bearer $GHCR_TOKEN" https://ghcr.io/v2/${{ github.repository_owner }}/cap-operator-manager/tags/list | jq '.tags[]' | sort -V | tail -n 2 | head -n 1)" >> $GITHUB_OUTPUT
echo "version=$(curl -H "Authorization: Bearer $GHCR_TOKEN" https://ghcr.io/v2/${{ github.repository }}/cap-operator-manager/tags/list | jq '.tags[]' | sort -V | tail -n 2 | head -n 1)" >> $GITHUB_OUTPUT
- name: Print docker version from container registry
run: "echo ${{ steps.get_version_from_container_reg.outputs.version }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:
HELM_VERSION: v3.11.3
REGISTRY: ghcr.io
CHART_DIRECTORY: chart
RELEASE_TAG_PREFIX: cap-operator-helm
RELEASE_TAG_PREFIX: helm

jobs:
create_release_tag:
Expand Down Expand Up @@ -168,5 +168,5 @@ jobs:
chart_name=$(yq .name $CHART_DIRECTORY/Chart.yaml)
chart_version=$(yq .version $CHART_DIRECTORY/Chart.yaml)
file=$chart_name-$chart_version.tgz
repository=$REGISTRY/${{ github.repository_owner }}/$RELEASE_TAG_PREFIX
repository=$REGISTRY/${{ github.repository }}/$RELEASE_TAG_PREFIX
helm --registry-config $RUNNER_TEMP/helm-config.json push $file oci://${repository,,}
2 changes: 1 addition & 1 deletion config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ resources:

images:
- name: controller
newName: ghcr.io/sap/cap-operator-manager
newName: ghcr.io/sap/cap-operator-lifecycle/cap-operator-manager
newTag: 0.0.1

0 comments on commit f41d338

Please sign in to comment.