Skip to content

Commit

Permalink
Merge pull request #498 from NBISweden/fix/latest-tag
Browse files Browse the repository at this point in the history
Correct usage of latest tags
  • Loading branch information
kusalananda authored May 25, 2022
2 parents aa27f43 + a161171 commit f42b4d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/create_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ jobs:
for image in urdr urdr-web; do
docker push "ghcr.io/nbisweden/$image:$branch"
docker tag "ghcr.io/nbisweden/$image:$branch" "ghcr.io/nbisweden/$image:latest"
docker push "ghcr.io/nbisweden/$image:latest"
done
4 changes: 2 additions & 2 deletions production/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:

urdr:
user: urdr
image: ghcr.io/nbisweden/urdr:${TAG:?TAG-not-set}
image: ghcr.io/nbisweden/urdr:${TAG:-latest}
container_name: urdr
build:
dockerfile: ../production/Dockerfile
Expand All @@ -22,7 +22,7 @@ services:
env_file:
- ./urdr.env
nginx:
image: ghcr.io/nbisweden/urdr-web:${TAG:?TAG-not-set}
image: ghcr.io/nbisweden/urdr-web:${TAG:-latest}
container_name: urdr-web
build:
dockerfile: ../production/Dockerfile.nginx
Expand Down

0 comments on commit f42b4d6

Please sign in to comment.