From 252790ddbda3a72fb2f54753093a8cb9400e6e97 Mon Sep 17 00:00:00 2001 From: Ulises Gascon Date: Thu, 19 Dec 2024 04:17:04 +0100 Subject: [PATCH] fix: references --- .github/workflows/docker-publish-on-release.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish-on-release.yml b/.github/workflows/docker-publish-on-release.yml index 8960b80..0a4704e 100644 --- a/.github/workflows/docker-publish-on-release.yml +++ b/.github/workflows/docker-publish-on-release.yml @@ -24,16 +24,22 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + - name: Set Lowercase Repository Info + id: repo_info + run: | + echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV + echo "REPO_NAME=$(echo ${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV + - name: Build and Push Docker Image uses: docker/build-push-action@v5 with: context: . push: true tags: | - ghcr.io/${{ github.repository }}/fortsphere:latest - ghcr.io/${{ github.repository }}/fortsphere:${{ github.event.release.tag_name }} + ghcr.io/$REPO_OWNER/$REPO_NAME:latest + ghcr.io/$REPO_OWNER/$REPO_NAME:${{ github.event.release.tag_name }} labels: | - org.opencontainers.image.title=Fortsphere + org.opencontainers.image.title=fortsphere org.opencontainers.image.description="Fortify your digital sphere, one command at a time." org.opencontainers.image.url=https://github.com/OpenPathfinder/fortSphere org.opencontainers.image.source=https://github.com/OpenPathfinder/fortSphere.git