From cf6499a54b33d30d75a9528e45fb7c8aaff3cb50 Mon Sep 17 00:00:00 2001 From: GH05TCREW Date: Sun, 7 Dec 2025 10:26:50 -0700 Subject: [PATCH] fix: correct YAML syntax in docker workflow --- .github/workflows/docker.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index c2509a7..dc3c064 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -8,7 +8,6 @@ on: env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} - IMAGE_NAME_LOWER: ${{ github.repository }} jobs: build-base: @@ -31,18 +30,17 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Set lowercase image name - id: lower - run: echo "IMAGE_NAME_LOWER=${IMAGE_NAME,,}" >> $GITHUB_ENV + - name: Set lowercase image name + run: echo "IMAGE_NAME_LOWER=${IMAGE_NAME,,}" >> $GITHUB_ENV - name: Extract metadata id: meta uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWER }} - tags: | - type=semver,pattern={{version}} - type=raw,value=latest + tags: | + type=semver,pattern={{version}} + type=raw,value=latest - name: Build and push base image uses: docker/build-push-action@v5 @@ -75,13 +73,15 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Set lowercase image name + run: echo "IMAGE_NAME_LOWER=${IMAGE_NAME,,}" >> $GITHUB_ENV + - name: Build and push Kali image uses: docker/build-push-action@v5 with: context: . file: Dockerfile.kali push: true - tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWER }}:kali + tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWER }}:kali cache-from: type=gha cache-to: type=gha,mode=max