Image based on official Golang as base, with Git on top (why don't they include it by default?)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
455 B

#!/usr/bin/env bash
set -e
# Copyright (c) 2022 Bryan Joshua Pedini
# License: MIT ยท see LICENSE file for more details
REGEX="^[ ]*(#.*)?$"
while read -r VERSION; do
if [[ ! "${VERSION}" =~ $REGEX ]]; then
docker build --force-rm --build-arg GO_VERSION=${VERSION} -t bryanpedini/gobuilder:${VERSION} .
docker push bryanpedini/gobuilder:${VERSION}
docker image rm bryanpedini/gobuilder:${VERSION} golang:${VERSION}
fi
done < versionlist