From 5e27051ecbd61455bb025d01b165c1c19832b4bb Mon Sep 17 00:00:00 2001 From: Punarv Pawade Date: Fri, 3 Nov 2023 00:02:47 +0530 Subject: [PATCH] Update docker-publish.yml --- .github/workflows/docker-publish.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 3430d20..b499105 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -36,8 +36,10 @@ jobs: # Workaround: https://github.com/docker/build-push-action/issues/461 - name: Setup Docker buildx - uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf - + uses: sigstore/cosign-installer@v3.1.1 + - name: Check install! + run: cosign version + - name: Login to GitHub Container Registry ${{ env.REGISTRY }} if: github.event_name != 'pull_request' uses: docker/login-action@v1 @@ -53,8 +55,8 @@ jobs: run: | export CURRENT_BRANCH=${GITHUB_REF#refs/heads/} export TAG=$([[ $CURRENT_BRANCH == "main" ]] && echo $CURRENT_BRANCH || echo "latest") - export GITHUB_REF_IMAGE=ghcr.io/NetSepio/sotreus:$GITHUB_SHA - export GITHUB_BRANCH_IMAGE=ghcr.io/NetSepio/sotreus:$TAG + export GITHUB_REF_IMAGE=ghcr.io/netsepio/sotreus:$GITHUB_SHA + export GITHUB_BRANCH_IMAGE=ghcr.io/netsepio/sotreus:$TAG docker build -t $GITHUB_REF_IMAGE -t $GITHUB_BRANCH_IMAGE . echo "Pushing Image to GitHub Container Registry" docker push $GITHUB_REF_IMAGE @@ -81,4 +83,4 @@ jobs: context: . file: ./Dockerfile push: true - tags: NetSepio/sotreus:latest + tags: netsepio/sotreus:latest