Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
aine-etke committed Sep 11, 2024
1 parent b898d35 commit 9677438
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
- name: Check if Docker image exists
id: check
run: |
IMAGE_TAG=ghcr.io/${{ github.repository }}/base:${{ env.alpine }}-${{ env.ansible_core }}-${{ env.ansible }}
if docker manifest inspect $IMAGE_TAG > /dev/null 2>&1; then
IMAGE_TAG="ghcr.io/${{ github.repository }}/base:${{ env.alpine }}-${{ env.ansible_core }}-${{ env.ansible }}"
echo "Checking for image: $IMAGE_TAG"
if docker manifest inspect "$IMAGE_TAG" > /dev/null 2>&1; then
echo "exists=true" >> $GITHUB_OUTPUT
else
echo "exists=false" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 9677438

Please sign in to comment.