Skip to content
Snippets Groups Projects
Commit 4c5d8e8c authored by q3k's avatar q3k
Browse files

docker/deploy-env: init

parent abffe52a
No related branches found
No related tags found
No related merge requests found
FROM ubuntu:bionic
RUN set -e -x ;\
export DEBIAN_FRONTEND=noninteractive ;\
apt-get update -y ;\
apt-get install -y \
clang \
git \
libclang-dev \
llvm \
python3-pip ;\
pip3 install \
clang \
sphinx \
sphinx_rtd_theme ;\
rm -rf /var/lib/apt/lists
#!/usr/bin/env bash
# Build and push the deploy env Docker container to the Gitlab container registry.
set -e
function rev() {
( cd $1; git describe --always --match "v[0-9].*" --dirty )
}
IMAGE=registry.k0.hswaw.net/q3k/card10-deploy-env
TAG=$(TZ=UTC date +%Y%m%d-%H%M%SZ)-$(rev .)
docker build -t $IMAGE:$TAG .
docker push $IMAGE:$TAG
echo "Pushed $IMAGE:$TAG"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment