grim/hgkeeper

Move the image to golang 1.18

22 months ago, Gary Kramlich
3c93ac85c843
Move the image to golang 1.18
environment:
- REPO=rwgrim/hgkeeper
- TAG=latest
- REGISTRY=docker.io
- REGISTRY_USERNAME
- REGISTRY_PASSWORD
tasks:
import:
type: docker/import
files: .:.
build:
type: docker/build
dockerfile: Dockerfile
tag: ${REGISTRY}/${REPO}:${TAG}
files: .:.
login:
type: docker/login
username: ${REGISTRY_USERNAME}
password: ${REGISTRY_PASSWORD}
server: ${REGISTRY}
logout:
type: docker/logout
server: ${REGISTRY}
push:
type: docker/push
images: ${REGISTRY}/${REPO}:${TAG}
docs-clean:
type: convey/clean
files: site
docs-import:
type: docker/import
files: .:.
# we explicitly call out jinja2==3.0.3 because 3.1.0 breaks mkdocs
# https://github.com/mkdocs/mkdocs/issues/2799
docs-build:
type: docker/run
image: docker.io/python:3-alpine
workdir: ${CONVEY_WORKSPACE}/docs
script:
- python3 -m pip install mkdocs mkdocs-include-markdown-plugin jinja2==3.0.3
- mkdocs build
docs-export:
type: docker/export
files: docs/site:site
plans:
default:
stages:
- tasks: [import, build]
ci:
stages:
- tasks: [import, build, login, push]
- tasks: [logout]
run: always
docs:
stages:
- tasks: [docs-clean]
- tasks: [docs-import, docs-build, docs-export]
clean:
stages:
- tasks: [docs-clean]