pre.hn/.gitlab-ci.yml

35 lines
937 B
YAML
Raw Normal View History

2023-09-24 22:54:59 +00:00
image: elixir:1.14.1
pages:
script:
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix esbuild.install --if-missing
- mix tailwind.install --if-missing
- mix tree_sitter.install --if-missing
2023-09-30 15:53:15 +00:00
- (cd tree-sitter/_parsers/;git clone https://github.com/elixir-lang/tree-sitter-elixir; git clone https://github.com/camdencheek/tree-sitter-dockerfile)
2023-09-24 22:54:59 +00:00
- mix assets.build
- mix pre_dot_hn.build
- cp -r priv/static/ public
artifacts:
paths:
- public
# This sequences waits 10 seconds after deploy (for GitLab pages to do its thing, then pings search engines)
# I wish we could just depend on the pages:deploy job that GitLab inserts, but apparently we can't reference it.
wait:
needs:
- "pages"
script:
- sleep 10
2023-10-26 13:16:43 +00:00
ping:
needs:
- "wait"
2023-10-26 13:16:43 +00:00
script:
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix compile
2023-10-26 13:16:43 +00:00
- mix pre_dot_hn.ping