imfreedom/docs.imfreedom.org
Clone
Summary
Browse
Changes
Graph
Mark the static files to be included in the container image build
2021-10-10, Gary Kramlich
50b3fa235a4b
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
]