test BUILD_DATE generation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-01-22 10:03:39 +01:00
parent edaae80460
commit cc4791053e
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
3 changed files with 16 additions and 5 deletions

View File

@ -64,6 +64,9 @@ local PipelineBuildContainer(arch='amd64') = {
repo: 'thegeeklab/${DRONE_REPO_NAME}',
username: { from_secret: 'docker_username' },
password: { from_secret: 'docker_password' },
build_args: [
'BUILD_DATE=$$(date --rfc-3339=seconds)',
],
},
when: {
ref: ['refs/heads/main', 'refs/tags/**'],

View File

@ -57,6 +57,8 @@ steps:
- name: publish-dockerhub
image: thegeeklab/drone-docker-buildx:20
settings:
build_args:
- BUILD_DATE=$$(date --rfc-3339=seconds)
dockerfile: Dockerfile.amd64
password:
from_secret: docker_password
@ -135,6 +137,8 @@ steps:
- name: publish-dockerhub
image: thegeeklab/drone-docker-buildx:20
settings:
build_args:
- BUILD_DATE=$$(date --rfc-3339=seconds)
dockerfile: Dockerfile.arm64
password:
from_secret: docker_password
@ -213,6 +217,8 @@ steps:
- name: publish-dockerhub
image: thegeeklab/drone-docker-buildx:20
settings:
build_args:
- BUILD_DATE=$$(date --rfc-3339=seconds)
dockerfile: Dockerfile.arm
password:
from_secret: docker_password
@ -346,6 +352,6 @@ depends_on:
---
kind: signature
hmac: b461e1964e0b2ac5b9154b81fa293d6dc99a082e63987d90a4e441b1667d26c8
hmac: 22ccba5c75de7c2c8bbccd66f0c7c2550d6d4edf6610bded6adc8d8668e19605
...

View File

@ -1,15 +1,17 @@
FROM amd64/alpine:3.13@sha256:d0710affa17fad5f466a70159cc458227bd25d4afb39514ef662ead3e6c99515
ARG GOMPLATE_VERSION
ARG SUPERCRONIC_VERSION
ARG URL_PARSER_VERSION
ARG BUILD_DATE
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="alpine"
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/alpine"
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/alpine"
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/alpine"
ARG GOMPLATE_VERSION
ARG SUPERCRONIC_VERSION
ARG URL_PARSER_VERSION
LABEL org.opencontainers.image.created="${BUILD_DATE}"
# renovate: datasource=github-releases depName=hairyhenderson/gomplate
ENV GOMPLATE_VERSION="${GOMPLATE_VERSION:-v3.8.0}"