Skip to content

Commit

Permalink
Allow Nessie reruns by reusing images
Browse files Browse the repository at this point in the history
  • Loading branch information
indhupriya authored Oct 13, 2020
1 parent b78e5c6 commit ee09a87
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/nessie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,15 @@ jobs:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY_LAKEFS: lakefs
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY_LAKEFS:${{ steps.version.outputs.tag }} --build-arg VERSION=${{ steps.version.outputs.tag }} .
docker push $ECR_REGISTRY/$ECR_REPOSITORY_LAKEFS:${{ steps.version.outputs.tag }}
set +e
describe_image="$( aws ecr describe-images --repository-name $ECR_REPOSITORY_LAKEFS --image-ids imageTag=${{ steps.version.outputs.tag }})"
if [ $? -eq 0 ]; then
echo "Image exists"
else
echo "Image doesn't exist"
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY_LAKEFS:${{ steps.version.outputs.tag }} --build-arg VERSION=${{ steps.version.outputs.tag }} .
docker push $ECR_REGISTRY/$ECR_REPOSITORY_LAKEFS:${{ steps.version.outputs.tag }}
fi
run-system:
name: Run latest lakeFS app
Expand Down

0 comments on commit ee09a87

Please sign in to comment.