Skip to content

Commit

Permalink
Merge pull request #43 from SumoLogic/publish-image
Browse files Browse the repository at this point in the history
Publish images to Amazon public ECR
  • Loading branch information
rnishtala-sumo authored Oct 11, 2023
2 parents 762581f + 10af883 commit 4ddd039
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ build_plugin () {
docker rm -vf "$id"

cp config.json ./sumoplugin/
docker plugin create ghcr.io/sumologic/docker-logging-driver:${VERSION_ARCH} ./sumoplugin/
docker plugin create public.ecr.aws/sumologic/docker-logging-driver:${VERSION_ARCH} ./sumoplugin/

if [[ "$ACTION" == "install" ]]; then
docker plugin enable ghcr.io/sumologic/docker-logging-driver:${VERSION_ARCH}
docker plugin enable public.ecr.aws/sumologic/docker-logging-driver:${VERSION_ARCH}
elif [[ "$ACTION" == "push" ]]; then
docker plugin push ghcr.io/sumologic/docker-logging-driver:${VERSION_ARCH}
docker plugin push public.ecr.aws/sumologic/docker-logging-driver:${VERSION_ARCH}
else
echo "Invalid action ${ACTION}, must be 'install' or 'push'."
fi
Expand Down

0 comments on commit 4ddd039

Please sign in to comment.