Reword again
continuous-integration/drone/push Build is failing Details

main
mat ess 2022-12-22 01:10:31 -05:00
parent 70e1572294
commit d77a5ec61c
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
local PROD = 'production'; local PROD = 'production';
local STAGE = 'staging'; local STAGE = 'staging';
local NIX = 'nix --store --eval-store local /tmp/cache --extra-experimental-features nix-command --extra-experimental-features flakes'; local NIX = 'nix --extra-experimental-features nix-command --extra-experimental-features flakes --eval-store local --store /tmp/cache ';
local VOLUMES = [ local VOLUMES = [
{ name: 'site', path: '/site' }, { name: 'site', path: '/site' },
{ name: 'cache', path: '/tmp/cache' }, { name: 'cache', path: '/tmp/cache' },
@ -45,7 +45,7 @@ local NixStep(env) =
local prod = env == PROD; local prod = env == PROD;
local output = if prod then '' else ' .#staging-site'; local output = if prod then '' else ' .#staging-site';
Step(env, 'nix build', [ Step(env, 'nix build', [
NIX + ' build' + output, NIX + 'build' + output,
'cp -r result/* /site/', 'cp -r result/* /site/',
]); ]);
@ -53,7 +53,7 @@ local DeployStep(env) =
local prod = env == PROD; local prod = env == PROD;
local options = if prod then '--prod' else '--alias staging'; local options = if prod then '--prod' else '--alias staging';
Step(env, 'netlify deploy', [ Step(env, 'netlify deploy', [
NIX + ' profile install nixpkgs#netlify-cli', NIX + 'profile install nixpkgs#netlify-cli',
'netlify deploy -d /site --auth $NETLIFY_TOKEN --site $NETLIFY_SITE_ID --message "$DRONE_COMMIT_MESSAGE" ' + options, 'netlify deploy -d /site --auth $NETLIFY_TOKEN --site $NETLIFY_SITE_ID --message "$DRONE_COMMIT_MESSAGE" ' + options,
], Secrets(['NETLIFY_TOKEN', 'NETLIFY_SITE_ID'])); ], Secrets(['NETLIFY_TOKEN', 'NETLIFY_SITE_ID']));