Skip to content

Commit

Permalink
Make the repository url strings less redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahl committed Sep 6, 2024
1 parent 0325ac9 commit 6f3f419
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions reads/docker-build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -eu
#!/bin/sh -euo pipefail

# This is kind of strange, but we do this to ensure the script runs with the right
# working directory without you having to worry about where you run the script from.
Expand All @@ -22,11 +22,12 @@ if [ -n "$GIT_STATUS" ]; then
IMAGE_TAG="${IMAGE_TAG}-modified"
fi

AR_REPO="us-docker.pkg.dev/exac-gnomad/gnomad/gnomad-reads"
docker build -f deploy/dockerfiles/reads/reads-server.dockerfile . \
--tag "us-docker.pkg.dev/exac-gnomad/gnomad/gnomad-reads-server:${IMAGE_TAG}"
--tag "${AR_REPO}-server:dev-${IMAGE_TAG}"

docker build -f deploy/dockerfiles/reads/reads-api.dockerfile . \
--tag "us-docker.pkg.dev/exac-gnomad/gnomad/gnomad-reads-api:${IMAGE_TAG}"
--tag "${AR_REPO}-api:dev-${IMAGE_TAG}"

echo "us-docker.pkg.dev/exac-gnomad/gnomad/gnomad-reads-server:${IMAGE_TAG}"
echo "us-docker.pkg.dev/exac-gnomad/gnomad/gnomad-reads-api:${IMAGE_TAG}"
echo "${AR_REPO}-server:dev-${IMAGE_TAG}"
echo "${AR_REPO}-api:dev-${IMAGE_TAG}"

0 comments on commit 6f3f419

Please sign in to comment.