Skip to content

Commit

Permalink
Merge pull request #240 from GeoNet/tidy-1
Browse files Browse the repository at this point in the history
Tidy 1
  • Loading branch information
sue-h-gns authored Aug 15, 2023
2 parents ca67e7a + aa41c3c commit 3fea8b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 0 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand All @@ -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" \
Expand Down
2 changes: 2 additions & 0 deletions cmd/fdsn-quake-consumer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3fea8b8

Please sign in to comment.