grim/convey
Clone
Summary
Browse
Changes
Graph
Update to Go 1.21 and use some new helpers
5 months ago, Elliott Sales de Andrade
adb6eb2a7d21
Update to Go 1.21 and use some new helpers
`strings.Cut` was added in 1.18, and `maps`/`slices` in 1.21.
Testing Done:
Ran `go test ./...`
Reviewed at https://reviews.imfreedom.org/r/2870/
---
tasks
:
import
:
type
:
docker/import
files
:
-
.:.
clean
:
type
:
convey/clean
files
:
-
convey-docs.zip
-
site
# we explicitly call out jinja2==3.0.3 because 3.1.0 breaks mkdocs
# https://github.com/mkdocs/mkdocs/issues/2799
build
:
type
:
docker/run
image
:
docker.io/python:3-alpine
workdir
:
${CONVEY_WORKSPACE}
script
:
-
set -ex
-
python3 -m pip install mkdocs jinja2
-
mkdocs build
-
apk add --no-cache zip
-
mkdir t
# we need to use a temporary directory as we may have a convey executable in the workspace
-
mv site t/convey
-
cd t
-
zip -9r convey-docs.zip convey
export
:
type
:
docker/export
files
:
t/convey-docs.zip:convey-docs.zip
plans
:
default
:
stages
:
-
tasks
:
-
clean
-
tasks
:
-
import
-
build
-
export
clean
:
stages
:
-
tasks
:
-
clean