diff --git a/builder/.github/workflows/push-image.yml b/builder/.github/workflows/push-image.yml index a7360e0c..2fb04095 100644 --- a/builder/.github/workflows/push-image.yml +++ b/builder/.github/workflows/push-image.yml @@ -38,8 +38,9 @@ jobs: env: PAKETO_BUILDPACKS_DOCKERHUB_USERNAME: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }} PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD }} - DOCKERHUB_ORG: "paketobuildpacks" + GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }} run: | + DOCKERHUB_ORG="${GITHUB_REPOSITORY_OWNER/-/}" # translates 'paketo-buildpacks' to 'paketobuildpacks' # Strip off the Github org prefix from repo name # paketo-buildpacks/builder-with-some-name --> builder-with-some-name registry_repo=$(echo "${{ github.repository }}" | sed 's/^.*\///')