Skip to content

Commit

Permalink
Updating to docker pull
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogenesAnalytics committed Mar 5, 2024
1 parent 86d49f7 commit bfe0f89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ jobs:

# Check if Docker image exists
- name: Check if Docker image exists
id: check-docker-image
run: |
set -e
if docker inspect "${{ env.IMAGE_REPO_NAME }}" &> /dev/null; then
if docker pull "${{ env.IMAGE_REPO_NAME }}"; then
echo "Image successfully pulled!"
echo "IMAGE_EXISTS=true" >> $GITHUB_ENV
else
echo "::error::Image does not exist"
echo "::error::Failed to pull the image"
echo "IMAGE_EXISTS=false" >> $GITHUB_ENV
fi
continue-on-error: true
Expand Down

0 comments on commit bfe0f89

Please sign in to comment.