mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-05-03 17:58:44 +00:00
ci
This commit is contained in:
parent
f5e7a64dbe
commit
091d34a8ad
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
|
@ -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
|
||||
|
|
10
flavours/classic/config/flavour_assets/variants.js
Normal file
10
flavours/classic/config/flavour_assets/variants.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
This file was generated by the Surface compiler.
|
||||
*/
|
||||
|
||||
const plugin = require("tailwindcss/plugin");
|
||||
|
||||
module.exports = {
|
||||
plugins: [
|
||||
]
|
||||
};
|
12
justfile
12
justfile
|
@ -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 $@" } }}
|
||||
|
||||
|
|
2
mix.exs
2
mix.exs
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue