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
|
2023-10-26 13:21:45 +00:00
|
|
|
|
|
|
|
# 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:
|
2023-10-26 13:21:45 +00:00
|
|
|
- "wait"
|
2023-10-26 13:16:43 +00:00
|
|
|
script:
|
2023-10-26 13:27:16 +00:00
|
|
|
- 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
|