- Git clone repo
- Archive it
- Build docker image
- Push docker image to a repo
go install github.com/rgynn/bob/cmd/bob@v0.0.6
Usage of bob:
-docker-image string
docker image to push
-git-commit string
git commit to checkout from repository and tag docker image with
-git-repo string
git repository to checkout
-git-ssh-key string
base64 encoded string of key to checkout repository with
-p string
docker repository password to push with
-tags string
additional tags to push docker image with
-timeout duration
timeout for job (default 5m0s)
-u string
docker repository user to push with (default "00000000-0000-0000-0000-000000000000")
bob -git-ssh-key $GIT_SSH_KEY -git-repo $GIT_REPOSITORY -git-commit $GIT_COMMIT_HASH -docker-image $DOCKER_REGISTRY/$DOCKER_IMAGE -p $DOCKER_REGISTRY_AUTH_TOKEN