From aa41c3c863fe424296a8d84581b6fdafdb729c15 Mon Sep 17 00:00:00 2001 From: Howard Wu Date: Wed, 16 Aug 2023 08:50:36 +1200 Subject: [PATCH] Tidy up followed by GA changes. --- build.sh | 6 ------ cmd/fdsn-quake-consumer/main.go | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index badac679..d490d2f1 100755 --- a/build.sh +++ b/build.sh @@ -15,10 +15,6 @@ if [ $# -eq 0 ]; then exit 1 fi -# code will be compiled in this container -BUILDER_IMAGE='quay.io/geonet/golang:1.16-alpine' -RUNNER_IMAGE='quay.io/geonet/go-scratch:latest' - VERSION='git-'$(git rev-parse --short HEAD) ACCOUNT=$(aws sts get-caller-identity --output text --query 'Account') @@ -39,8 +35,6 @@ for i in "$@"; do docker build \ --build-arg=BUILD="$i" \ - --build-arg=RUNNER_IMAGE="$RUNNER_IMAGE" \ - --build-arg=BUILDER_IMAGE="$BUILDER_IMAGE" \ --build-arg=GIT_COMMIT_SHA="$VERSION" \ --build-arg=ASSET_DIR="./cmd/$i/assets" \ -t "${ACCOUNT}.dkr.ecr.ap-southeast-2.amazonaws.com/${i}:$VERSION" \ diff --git a/cmd/fdsn-quake-consumer/main.go b/cmd/fdsn-quake-consumer/main.go index 6a000481..be3c19ad 100644 --- a/cmd/fdsn-quake-consumer/main.go +++ b/cmd/fdsn-quake-consumer/main.go @@ -129,6 +129,8 @@ func (n *notification) Process(msg []byte) error { if err := e.save(); err != nil { return fmt.Errorf("error saving SC3ML %s %s: %w", v.S3.Bucket.Name, v.S3.Object.Key, err) } + + log.Println("saved", e.PublicID) } return nil