This commit is contained in:
Mayel de Borniol 2022-07-05 11:22:56 +12:00
parent 40297fc5e4
commit e6296235df
2 changed files with 9 additions and 2 deletions

View file

@ -102,7 +102,7 @@
| timex | MIT | 3.7.5 | https://hex.pm/packages/timex |
| toml | Apache 2.0 | 0.5.2 | https://hex.pm/packages/toml |
| towel | MIT | 0.2.1 | https://hex.pm/packages/towel |
| tree_magic | GPL v3 | 0.1.1 | https://github.com/commonspub/tree_magic.ex |
| tree_magic | GPL v3 | 0.1.1 | https://github.com/bonfire-networks/tree_magic.ex |
| twinkle_star | GPL v3 | 0.1.0 | https://github.com/bonfire-ecosystem/twinkle_star |
| tzdata | MIT | 1.1.0 | https://hex.pm/packages/tzdata |
| unicode_util_compat | Apache 2.0 | 0.7.0 | https://hex.pm/packages/unicode_util_compat |

View file

@ -416,13 +416,20 @@ rel-build FORKS_TO_COPY_PATH="forks/" ARGS="": rel-init rel-prepare assets-prepa
# Add latest tag to last build
rel-tag label='latest':
@docker tag $APP_DOCKER_REPO:release-$FLAVOUR-$APP_VSN-$APP_BUILD $APP_DOCKER_REPO:$label-$FLAVOUR-{{arch()}}
rel-tag-build $APP_BUILD $label
rel-tag-build build label='latest':
@docker tag $APP_DOCKER_REPO:release-$FLAVOUR-$APP_VSN-$build $APP_DOCKER_REPO:$label-$FLAVOUR-{{arch()}}
# Add latest tag to last build and push to Docker Hub
rel-push label='latest':
@just rel-tag $label
@just rel-push-only $label
rel-push-only label='latest':
@docker login && docker push $APP_DOCKER_REPO:$label-$FLAVOUR-{{arch()}}
# Run the app in Docker & starts a new `iex` console
rel-run: rel-init docker-stop-web rel-services
@docker-compose -p $APP_REL_CONTAINER -f $APP_REL_DOCKERCOMPOSE run --name $WEB_CONTAINER --service-ports --rm web bin/bonfire start_iex