From e900c3b660451d017092720894cf1c00ac646269 Mon Sep 17 00:00:00 2001 From: Jordan Dalby Date: Wed, 23 Oct 2024 21:58:27 +0100 Subject: [PATCH] Refactor Docker configuration to use the correct image name --- .github/workflows/docker-build.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 4c4f931..1acdea9 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -7,7 +7,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ toLowerCase(github.repository) }} + IMAGE_NAME: jordan-dalby/bytestash jobs: docker: @@ -20,11 +20,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Convert repository name to lowercase - id: repo-name - run: | - echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV - - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -42,7 +37,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.REPO_LOWERCASE }} + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | type=semver,pattern={{version}} type=raw,value=latest,enable={{is_default_branch}} @@ -55,5 +50,5 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_LOWERCASE }}:buildcache - cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_LOWERCASE }}:buildcache,mode=max \ No newline at end of file + cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache + cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max \ No newline at end of file