Mayel de Borniol 2022-09-20 23:58:43 +12:00
parent 3783b2ba14
commit ae6dc44a07
3 changed files with 15 additions and 4 deletions

View file

@ -445,14 +445,14 @@ rel-build FORKS_TO_COPY_PATH="forks/" ARGS="": rel-init rel-prepare assets-prepa
-t $APP_DOCKER_REPO:release-$FLAVOUR-$APP_VSN-$APP_BUILD \
-f $APP_REL_DOCKERFILE .
@echo Build complete: $APP_DOCKER_REPO:release-$FLAVOUR-$APP_VSN-$APP_BUILD
@echo "Remember to run just rel-tag-latest or just rel-push"
@echo "Remember to run just rel-tag or just rel-push"
rel-tag-commit build label:
@docker tag $APP_DOCKER_REPO:release-$FLAVOUR-$APP_VSN-{{build}} $APP_DOCKER_REPO:{{label}}-$FLAVOUR-{{arch()}}
rel-tag-commit build label: rel-init
docker tag $APP_DOCKER_REPO:release-$FLAVOUR-$APP_VSN-{{build}} $APP_DOCKER_REPO:{{label}}-$FLAVOUR-{{arch()}}
# 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()}}
just rel-tag-commit $APP_BUILD {{label}}
# Add latest tag to last build and push to Docker Hub
rel-push label='latest':

View file

@ -8,6 +8,7 @@ defmodule Bonfire.Application do
@deps Bonfire.Common.Extend.loaded_deps()
@endpoint_module Application.compile_env!(@otp_app, :endpoint_module)
@repo_module Application.compile_env!(@otp_app, :repo_module)
@required_deps Mix.Project.config()[:required_deps]
use Application
require Cachex.Spec
@ -112,4 +113,5 @@ defmodule Bonfire.Application do
def named_version, do: name() <> " " <> @version
def repository, do: @repository
def deps, do: @deps
def required_deps, do: @required_deps
end

View file

@ -72,6 +72,14 @@ defmodule Bonfire.MixProject do
"bonfire_geolocate",
"bonfire_valueflows"
],
required: [
"bonfire_boundaries",
"bonfire_social",
"bonfire_me",
"bonfire_ecto",
"bonfire_epics",
"bonfire_common"
],
localise: ["bonfire"],
localise_self: []
]
@ -86,6 +94,7 @@ defmodule Bonfire.MixProject do
elixirc_paths: elixirc_paths(Mix.env()),
test_paths: test_paths(),
test_deps: deps(:test),
required_deps: @config[:deps_prefixes][:required],
compilers: compilers(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),