Skip to content

Commit

Permalink
Merge pull request #2 from ITI/robadams-cicd
Browse files Browse the repository at this point in the history
Robadams cicd
  • Loading branch information
illinoisrobert authored Aug 8, 2024
2 parents 2dbaa57 + 986eba1 commit 303c36f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions beta/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# Build phase
FROM golang:bookworm AS builder
LABEL org.opencontainers.image.source = "https://github.com/ITI/pcesapps"
# Next line is just for debug
RUN ldd --version
WORKDIR /build
Expand Down
6 changes: 4 additions & 2 deletions beta/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@
pfx="ghcr.io/iti/pcesapps"

now=$(date -u +%F-%H-%M-%S)
if "$1" = ""

if [ "$1" = "" ]
then
image="$pfx-test"
latest=
latest=( )
else
image="$pfx-$1"
shift
latest=( "latest" "$@" )
fi

cp ../go.mod ../go.sum .
docker build --no-cache -t "$image:$now" .
docker push "$image:$now"
for v in "${latest[@]}" ; do
Expand Down

0 comments on commit 303c36f

Please sign in to comment.