From a1ec7e59ff1e13a58b8fff6730bae7728b5bbc94 Mon Sep 17 00:00:00 2001 From: gcroci2 Date: Thu, 5 Sep 2024 12:37:39 +0200 Subject: [PATCH] lowercase the organization --- .github/workflows/publish_docker_image.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_docker_image.yml b/.github/workflows/publish_docker_image.yml index d3962f68..24a29898 100644 --- a/.github/workflows/publish_docker_image.yml +++ b/.github/workflows/publish_docker_image.yml @@ -21,6 +21,7 @@ jobs: runs-on: ubuntu-latest outputs: version: ${{ steps.get_version.outputs.VERSION }} + repo_lowercase: ${{ steps.repo_lowercase.outputs.REPO_LOWERCASE }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -31,13 +32,19 @@ jobs: VERSION=$(grep '^version =' pyproject.toml | awk -F '"' '{print $2}') echo "VERSION=$VERSION" >> $GITHUB_OUTPUT + - name: Convert repository name to lowercase + id: repo_lowercase + run: | + REPO_LOWERCASE=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]') + echo "REPO_LOWERCASE=$REPO_LOWERCASE" >> $GITHUB_OUTPUT + docker_image_deeprank2: needs: read_version name: docker_image_deeprank2 uses: ./.github/workflows/_ghcr.yml with: ghcr_user: ${{github.actor}} - base_image_name: ghcr.io/${{ github.repository }} + base_image_name: ghcr.io/${{ needs.read_version.outputs.repo_lowercase }} image_tag: ${{ needs.read_version.outputs.version }} dockerfile: ./Dockerfile docker_context: .