
This builds and works and cleans up a few things. We're also migrating to material ui - but not very deeply yet. No clue what we're going to do with the talks and blog posts yet. The real question is - do I care about those at this point? I think I'd like to use this as a playground a bit, make some of the CSS style sections into components. Maybe make all of this a bit more dynamic or something. But for now, this gets me a something. Change-Id: I455bb3fbf9d7473e8f7bcf639b2254ffe0917a32
99 lines
3.1 KiB
YAML
99 lines
3.1 KiB
YAML
- secret:
|
|
name: inaugust-netlify-auth
|
|
data:
|
|
token: !encrypted/pkcs1-oaep
|
|
- MN4u8YTagu+mZXCbL7SwF0Z1Iee7zuh5m7LhwCzd0ueRVsbVHHbORBVJb+RH3O83bki1h
|
|
qD5db5NsIoIgQ4IXvJ/Xc4dG0geTULZfLmDbjPA9l8SW3iraTmYjEIL+qgg+7QWaNFTno
|
|
AttKYa3IeJo5A61T6hHz9ijS+5PhKuGwW29Kh/TpFu7HPr+7JRJzhi4n9RAmSYohGiUTM
|
|
ZqEmCNVGrU6AQV1CixBli5dwsCSpbYCsA4gohyNSVlHDBnoWAYLGf0kGHisKtJCLeBSpn
|
|
lFi7jzm7UYm6UFfjeTUF86C0hyPuK3NtkF3WYv+qUH72DGuYdSVD8daYWlAEZg8ptv+I8
|
|
N8tyjrCmCSFjTk8IpLF0B8D9zPAxqnMPGgbB4UI31RDlbxqTZCVRrZzUdmigCkitsOhuA
|
|
9d2JVGISif8sAm8mESlni9KXstYst8yFVSS/Y52h8FLp5Ee/CCHa7StQOtI2jaVOOdzdW
|
|
mHaRPY91FVGtqw+XDLZbPeaPQlt0Q9XZ7qFB/g0rTtl9eWlQ1KrYjC75LZ7ykqNnm8SNV
|
|
0tyrHzRLcignZGyy8LT10x9NGba9r+dToAsVmdHcSzo11WwohRXanzZy6C9/4eeBST+7j
|
|
fnFOj7uNfNKo2TpmE3yaFNxDW1RumnlsmR970M0PmUVEVO3owAoAgaJolzTLhA=
|
|
|
|
- job:
|
|
name: inaugust-build-website
|
|
parent: build-javascript-deployment
|
|
success-url: "http://site.{build.uuid}.{tenant.name}.zuul-preview.opendev.org/"
|
|
vars:
|
|
node_version: 18
|
|
js_build_command: build
|
|
javascript_content_dir: out
|
|
|
|
- job:
|
|
name: inaugust-publish-javascript-to-netlify
|
|
parent: build-javascript-deployment
|
|
description: |
|
|
Builds javascript site and deploys to netlify.
|
|
|
|
Responds to these variables:
|
|
|
|
.. zuul:jobvar:: js_build_command
|
|
:default: build
|
|
|
|
Command to pass to the javascript package manager..
|
|
|
|
.. zuul:jobvar:: js_build_tool
|
|
:default: autodetected
|
|
|
|
Command to use for running the package manager, such as npm or yarn.
|
|
|
|
.. zuul:jobvar:: node_version
|
|
:default: 14
|
|
|
|
The version of Node to use.
|
|
|
|
.. zuul:jobvar:: zuul_work_dir
|
|
:default: {{ zuul.project.src_dir }}
|
|
|
|
Path to operate in.
|
|
|
|
.. zuul:jobvar:: javascript_content_dir
|
|
:default: public
|
|
|
|
Directory, relative to zuul_work_dir, holding build content.
|
|
|
|
.. zuul:jobvar:: netlify_site_id
|
|
|
|
Site id for the site to publish. This can be found on the site
|
|
general settings page as ``API Id``.
|
|
|
|
.. zuul:rolevar:: netlify_auth
|
|
:type: dict
|
|
|
|
Complex argument which contains the netlify authentication credentials.
|
|
This is expected to come from a secret.
|
|
|
|
.. zuul:rolevar:: token
|
|
|
|
API token to use to publish the content. Instructions for creating
|
|
a token can be found at
|
|
https://docs.netlify.com/cli/get-started/#obtain-a-token-in-the-netlify-ui
|
|
post-run: playbooks/netlify-publish.yaml
|
|
|
|
- job:
|
|
name: inaugust-publish-netlify
|
|
parent: inaugust-publish-javascript-to-netlify
|
|
vars:
|
|
netlify_site_id: 61580c77-b0fe-42c7-acec-c92d4cd1729c
|
|
node_version: 18
|
|
js_build_command: build
|
|
javascript_content_dir: out
|
|
secrets:
|
|
- secret: inaugust-netlify-auth
|
|
name: netlify_auth
|
|
pass-to-parent: true
|
|
|
|
- project:
|
|
check:
|
|
jobs:
|
|
- inaugust-build-website
|
|
gate:
|
|
jobs:
|
|
- inaugust-build-website
|
|
post:
|
|
jobs:
|
|
- inaugust-publish-netlify
|