From 00875ee556eeb1abd36837eaf50127736f508bd6 Mon Sep 17 00:00:00 2001 From: folland87 Date: Fri, 22 Mar 2024 18:13:42 +0100 Subject: [PATCH] fix deployment#2 --- .github/workflows/production.yml | 3 ++- .github/workflows/staging.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index be04075e..088a6ba5 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -28,7 +28,8 @@ jobs: - name: 🏷️ Get tag id: tag - run: echo "tag=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT + run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + - name: 🔑 Login Docker run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 62974b16..6b06dbda 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -28,7 +28,7 @@ jobs: - name: 🏷️ Get tag id: tag - run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + run: echo "tag=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT - name: 🔑 Login Docker run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}