imfreedom/docs.imfreedom.org

Add support for pulling docs out of zip files
default tip
10 months ago, Gary Kramlich
57cd6963bcbd
Add support for pulling docs out of zip files

Testing Done:
Dropped `hasl.zip` in the `archives/` directory and verified it showed up in the final container. The hasl docs are going to be in another review request.

Also built with the `archives/` directory empty and verified it ran without issue.

Reviewed at https://reviews.imfreedom.org/r/2456/
environment:
- REGISTRY=docker.io
- REGISTRY_USERNAME
- REGISTRY_PASSWORD
- REPOSITORY=imfreedom/docs
- TAG=latest
tasks:
import:
type: docker/import
files: .:.
build:
type: docker/build
dockerfile: Dockerfile
tag: ${REGISTRY}/${REPOSITORY}:${TAG}
files:
- archives
- docs
- static
clean:
type: docker/remove
quiet: true
images: ${REGISTRY}/${REPOSITORY}:${TAG}
login:
type: docker/login
server: ${REGISTRY}
username: ${REGISTRY_USERNAME}
password: ${REGISTRY_PASSWORD}
logout:
type: docker/logout
server: ${REGISTRY}
publish:
type: docker/push
images: ${REGISTRY}/${REPOSITORY}:${TAG}
plans:
build:
stages:
- tasks: [import, build]
clean:
stages:
- tasks: [clean]
publish:
stages:
- tasks: [login, publish]
- tasks: [logout]
run: always
meta-plans:
default:
plans: [build, publish]