imfreedom/docs.imfreedom.org

Mark the static files to be included in the container image build
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:
- 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]