From ca664b3b14459de6514e20ed70ff1299ff3b3e91 Mon Sep 17 00:00:00 2001 From: Zeort Date: Thu, 4 Jul 2024 15:33:59 +0300 Subject: [PATCH 1/2] fix curl -OLF dependency downloads --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 63e5c32..5c81680 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,24 +38,24 @@ ENV VERSION_KORIFI=0.12.0 WORKDIR /workspace/module-data/servicebinding -RUN curl -O https://github.com/servicebinding/runtime/releases/download/v$VERSION_SERVICEBINDING/servicebinding-runtime-v$VERSION_SERVICEBINDING.yaml -RUN curl -O https://github.com/servicebinding/runtime/releases/download/v$VERSION_SERVICEBINDING/servicebinding-workloadresourcemappings-v$VERSION_SERVICEBINDING.yaml +RUN curl -OLf https://github.com/servicebinding/runtime/releases/download/v$VERSION_SERVICEBINDING/servicebinding-runtime-v$VERSION_SERVICEBINDING.yaml +RUN curl -OLf https://github.com/servicebinding/runtime/releases/download/v$VERSION_SERVICEBINDING/servicebinding-workloadresourcemappings-v$VERSION_SERVICEBINDING.yaml WORKDIR /workspace/module-data/kpack -RUN curl -O https://github.com/buildpacks-community/kpack/releases/download/v$VERSION_KPACK/release-$VERSION_KPACK.yaml +RUN curl -OLf https://github.com/buildpacks-community/kpack/releases/download/v$VERSION_KPACK/release-$VERSION_KPACK.yaml WORKDIR /workspace/module-data/cert-manager -RUN curl -O https://github.com/cert-manager/cert-manager/releases/download/v$VERSION_CERT_MANAGER/cert-manager.yaml +RUN curl -OLf https://github.com/cert-manager/cert-manager/releases/download/v$VERSION_CERT_MANAGER/cert-manager.yaml WORKDIR /workspace/module-data/gateway-api -RUN curl -O https://github.com/kubernetes-sigs/gateway-api/releases/download/v$VERSION_GATEWAY_API/experimental-install.yaml +RUN curl -OLf https://github.com/kubernetes-sigs/gateway-api/releases/download/v$VERSION_GATEWAY_API/experimental-install.yaml WORKDIR /workspace/module-data/twuni-helm -RUN curl -L -O https://github.com/twuni/docker-registry.helm/archive/refs/tags/v$VERSION_TWUNI.tar.gz +RUN curl -OLf https://github.com/twuni/docker-registry.helm/archive/refs/tags/v$VERSION_TWUNI.tar.gz #Some day we are going to use the OSS Korifi project #WORKDIR /workspace/module-data/korifi -#RUN curl -L -O https://github.com/cloudfoundry/korifi/releases/download/v$VERSION_KORIFI/korifi-$VERSION_KORIFI.tgz +#RUN curl -OLf https://github.com/cloudfoundry/korifi/releases/download/v$VERSION_KORIFI/korifi-$VERSION_KORIFI.tgz # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details From 36fc2d456bc646cb51779d86253914fdcc730e9f Mon Sep 17 00:00:00 2001 From: Rashid Rashidov Date: Thu, 18 Jul 2024 16:37:36 +0300 Subject: [PATCH 2/2] Fix release workflow - set proper env variable to pass github token --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28556a4..e991546 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,7 +47,7 @@ jobs: - name: Create draft release env: VERSION: ${{ steps.version.outputs.version }} - GH_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ github.token }} shell: bash run: | gh release create "${VERSION}" --draft --notes-file RELEASE.md @@ -55,7 +55,7 @@ jobs: - name: Publish Release env: VERSION: ${{ steps.version.outputs.version }} - GH_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ github.token }} shell: bash run: | gh release edit "${VERSION}" --draft=false --latest @@ -63,7 +63,7 @@ jobs: - name: Upload release artifacts env: VERSION: ${{ steps.version.outputs.version }} - GH_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ github.token }} shell: bash run: | gh release upload "${VERSION}" "./release-${VERSION}/cfapi-default-cr.yaml"