imfreedom/knowledgebase

Add a Dockerfile and a convey.yml

24 months ago, Gary Kramlich
c642661caee8
Parents 6f68cee9441e
Children 8516cb8c3403
Add a Dockerfile and a convey.yml
  • +13 -0
    Dockerfile
  • +35 -0
    convey.yml
  • --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/Dockerfile Sat Apr 09 09:31:27 2022 -0500
    @@ -0,0 +1,13 @@
    +FROM docker.io/python:3-alpine AS build
    +
    +RUN set -ex && \
    + python3 -m pip install mkdocs jinja2==3.0.3
    +
    +COPY . .
    +
    +RUN set -ex && \
    + mkdocs build
    +
    +FROM docker.io/nginx:latest
    +
    +COPY --from=build site/ /usr/share/nginx/html/
    --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/convey.yml Sat Apr 09 09:31:27 2022 -0500
    @@ -0,0 +1,35 @@
    +---
    +environment:
    + - REGISTRY_HOST=docker.io
    + - REGISTRY_USERNAME
    + - REGISTRY_PASSWORD
    + - REPOSITORY=imfreedom/knowledgebase
    + - TAG=latest
    +tasks:
    + import:
    + type: convey/import
    + files: .:.
    + build:
    + type: podman/build
    + containerfile: Dockerfile
    + tags: ${REGISTRY_HOST}/${REPOSITORY}:${TAG}
    + push:
    + type: podman/push
    + tags: ${REGISTRY_HOST}/${REPOSITORY}:${TAG}
    + login:
    + type: podman/login
    + registry: ${REGISTRY_HOST}
    + username: ${REGISTRY_USERNAME}
    + password: ${REGISTRY_PASSWORD}
    + logout:
    + type: podman/logout
    + registry: ${REGISTRY_HOST}
    +plans:
    + default:
    + stages:
    + - tasks: [import, build]
    + cicd:
    + stages:
    + - tasks: [import, build, login, push]
    + - tasks: [logout]
    + run: always