Skip to content

Commit

Permalink
temporary set tag in envs
Browse files Browse the repository at this point in the history
  • Loading branch information
ole-ve committed Dec 6, 2024
1 parent db3d5b0 commit 805789d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- feat/build-on-push

env:
IMAGE_TAG: latest

jobs:
deploy:
runs-on: self-hosted
Expand All @@ -14,12 +17,6 @@ jobs:
steps:
- name: Check image tag exists
run: |
set -e # Ensure the script stops on the first error
# set default tag to latest if not provided
if [ -z "$IMAGE_TAG" ]; then
echo "IMAGE_TAG=latest" >> $GITHUB_ENV
fi
URL="https://ghcr.io/v2/${{ github.repository }}/manifests/${{ env.IMAGE_TAG }}"
STATUS=$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" $URL)
Expand Down

0 comments on commit 805789d

Please sign in to comment.