This commit is contained in:
Mayel de Borniol 2024-04-16 12:04:52 +01:00
parent f5e7a64dbe
commit 091d34a8ad
4 changed files with 22 additions and 6 deletions

View file

@ -154,7 +154,7 @@ jobs:
-
name: Install Bonfire deps
run: |
just config
just rel-config
mix local.hex --force
mix local.rebar --force
just mix "deps.get --only prod"
@ -163,7 +163,7 @@ jobs:
run: |
ls -la data/current_flavour/config/flavour_assets/
ls -la data/current_flavour/config/flavour_assets/hooks/
just rel-build
just _rel-build-OTP remote
ls -la data/current_flavour/config/flavour_assets/
ls -la data/current_flavour/config/flavour_assets/hooks/
cd _build/prod/rel && tar -czvf bonfire-${{ env.FLAVOUR }}-amd64-debian-bullseye.tar.gz bonfire

View file

@ -0,0 +1,10 @@
/*
This file was generated by the Surface compiler.
*/
const plugin = require("tailwindcss/plugin");
module.exports = {
plugins: [
]
};

View file

@ -597,6 +597,8 @@ test-db-reset: init db-pre-migrations
_rel-init:
MIX_ENV=prod just _pre-init
rel-config: config _rel-init _rel-prepare
# copy current flavour's config, without using symlinks
@_rel-config-prepare:
rm -rf data/current_flavour
@ -625,13 +627,13 @@ rel-build-release ARGS="":
# Build the release
rel-build USE_EXT="local" ARGS="":
@just {{ if WITH_DOCKER != "no" {"rel-build-docker"} else {"_rel-build-OTP"} }} {{ USE_EXT }} {{ ARGS }}
@just {{ if WITH_DOCKER != "no" {"rel-build-docker"} else {"rel-build-OTP"} }} {{ USE_EXT }} {{ ARGS }}
# Build the OTP release
rel-build-OTP USE_EXT="local" ARGS="":
rel-build-OTP USE_EXT="local" ARGS="": _rel-init _rel-prepare
WITH_DOCKER=no just _rel-build-OTP {{ USE_EXT }} {{ ARGS }}
_rel-build-OTP USE_EXT="local" ARGS="": _rel-init _rel-prepare
_rel-build-OTP USE_EXT="local" ARGS="":
just rel-mix {{ USE_EXT }} "compile --return-errors {{ ARGS }}"
yarn -v || npm install --global yarn
-rm -rf priv/static
@ -796,6 +798,10 @@ shell:
echo % mix $@
{{ if MIX_ENV == "prod" { "just mix-maybe-prod $@" } else { "just cmd mix $@" } }}
@mix-eval *args='': init
echo % mix eval "$@"
{{ if MIX_ENV == "prod" {"echo Skip"} else { 'mix eval "$@"' } }}
@mix-maybe-prod *args='':
{{ if WITH_DOCKER != "no" { "echo Ignoring mix commands when using docker in prod" } else { "just mix-maybe-prod-pre-release $@" } }}

View file

@ -157,7 +157,7 @@ defmodule Bonfire.Umbrella.MixProject do
# TODO: put these in ENV or an external writeable config file similar to deps.*
@config [
# note that the flavour will automatically be added where the dash appears
version: "0.9.10-beta.51",
version: "0.9.10-beta.52",
elixir: ">= #{System.get_env("ELIXIR_VERSION", "1.13.4")}",
flavour: @flavour,
default_flavour: @default_flavour,