Skip to content

Commit

Permalink
Update ehrql image along with databuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok committed Apr 20, 2023
1 parent 5640cb3 commit d39df53
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/update-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,13 @@ docker pull docker-proxy.opensafely.org/opensafely-core/$1
docker tag docker-proxy.opensafely.org/opensafely-core/$1 ghcr.io/opensafely-core/$1
# temp b/w compat tag
docker tag docker-proxy.opensafely.org/opensafely-core/$1 ghcr.io/opensafely/$1

# If the image being updated is databuilder, make sure we get the aliased ehrql tag too
if [[ $1 == databuilder* ]]; then
image=$(echo "$1" | sed -r 's/[databuilder]+/ehrql/g')
echo "Updating ehrql image: $image"
docker pull docker-proxy.opensafely.org/opensafely-core/$image
docker tag docker-proxy.opensafely.org/opensafely-core/$image ghcr.io/opensafely-core/$image
fi

docker image prune --force

0 comments on commit d39df53

Please sign in to comment.