Commit 8a21aa1c authored by Dominique Feyer's avatar Dominique Feyer

TASK: Add default labels

parent f4af022c
Pipeline #882 canceled with stage
in 5 seconds
......@@ -9,6 +9,6 @@ before_script:
build:
stage: build
script:
- docker build -t ttree/phpbu:4.0.6 .
- docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`git rev-parse --short HEAD` -t ttree/phpbu:4.0.6 .
- docker tag ttree/phpbu:4.0.6 ttree/phpbu:4.0
- docker tag ttree/phpbu:4.0.6 ttree/phpbu:latest
......@@ -2,6 +2,19 @@ FROM php:7.1.2-alpine
MAINTAINER Dominique Feyer <dfeyer@ttree.ch>
ARG BUILD_DATE
ARG VCS_REF
# Basic build-time metadata as defined at http://label-schema.org
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.docker.dockerfile="/Dockerfile" \
org.label-schema.license="MIT" \
org.label-schema.name="Docker image for PHPBU" \
org.label-schema.url="http://www.ttree.ch/docker/phpbu" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://gitlab.ttree.ch/ttree/phpbu.git" \
org.label-schema.vcs-type="Git"
RUN set -ex \
&& apk add --no-cache wget tar mysql-client openssl \
&& mkdir /source /destination
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment