Skip to content

Commit

Permalink
test snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-yuen committed Feb 19, 2024
1 parent a71af75 commit 8cbd89b
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions .github/workflows/docker-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
# manually set the version number of testing purpose
env:

manual_build_version: "5.55.556" # manual set value of the build version
manual_build_version: "" # manual set value of the build version
committer_types: "es solr db" # different types of committers

jobs:
Expand Down Expand Up @@ -175,7 +175,8 @@ jobs:
done
docker image ls -a
# check what images are created
#docker image ls -a
# upload to dockerhub
docker push norconex/crawler:latest
Expand All @@ -192,21 +193,27 @@ jobs:
done
echo "Base, and committers images uploaded!"
fi

else
# tag the local images with repo inform for upload use
docker image tag ${{env.version}}-crawler-base norconex/crawler:${{env.version}}
# tag images for different committer type
for type in $committer_types; do
docker image tag ${{env.version}}-crawler-$type norconex/crawler:${{env.version}}-$type
# else
# # tag the local images with repo inform for upload use
# docker image tag ${{env.version}}-crawler-base norconex/crawler:${{env.version}}
# docker image tag ${{env.version}}-crawler-es norconex/crawler:${{env.version}}-es
# docker image tag ${{env.version}}-crawler-solr norconex/crawler:${{env.version}}-solr
done
# upload tagged images to dockerhub
docker push norconex/crawler:${{env.version}}
# upload different type of committer images
for type in $committer_types; do
docker push norconex/crawler:${{env.version}}-$type
# # upload tagged images to dockerhub
# docker push norconex/crawler:${{env.version}}
# docker push norconex/crawler:${{env.version}}-es
# docker push norconex/crawler:${{env.version}}-solr
done
# echo "snapshot uploaded!"
# fi
echo "snapshot uploaded!"
fi

0 comments on commit 8cbd89b

Please sign in to comment.