From be55d69955eaeee728c947ebe0882224c4dc5b5a Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Wed, 12 Jun 2024 19:47:25 -0300 Subject: [PATCH] ci: fix bad repo name when publishing container --- .github/workflows/release-containers.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-containers.yaml b/.github/workflows/release-containers.yaml index 5cf7d76e6..40506e43c 100644 --- a/.github/workflows/release-containers.yaml +++ b/.github/workflows/release-containers.yaml @@ -43,11 +43,19 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + # This is needed because the repo is under the "Glistix" - not "glistix" - org, + # and lowercase repo names are required for the registry. + # See https://github.com/orgs/community/discussions/25768 + - name: Convert repository name to lowercase + env: + ORIGINAL_GH_REPO: ${{ github.repository }} + run: | + echo "GH_REPO=${ORIGINAL_GH_REPO,,}" >>${GITHUB_ENV} + - name: Build version and tags id: versions env: GH_REF: ${{ github.ref }} - GH_REPO: ${{ github.repository }} run: | # Strip git ref prefix from version V_VERSION=$(echo "$GH_REF" | sed -e 's|.*/\(.*\)|\1|') @@ -67,8 +75,6 @@ jobs: echo "container_tag=$TAG" >> $GITHUB_OUTPUT - name: Download Glistix archives from GitHub release - env: - GH_REPO: ${{ github.repository }} run: | VERSION=${{ steps.versions.outputs.v_version }}