test BUILD_DATE generation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
edaae80460
commit
cc4791053e
@ -64,6 +64,9 @@ local PipelineBuildContainer(arch='amd64') = {
|
|||||||
repo: 'thegeeklab/${DRONE_REPO_NAME}',
|
repo: 'thegeeklab/${DRONE_REPO_NAME}',
|
||||||
username: { from_secret: 'docker_username' },
|
username: { from_secret: 'docker_username' },
|
||||||
password: { from_secret: 'docker_password' },
|
password: { from_secret: 'docker_password' },
|
||||||
|
build_args: [
|
||||||
|
'BUILD_DATE=$$(date --rfc-3339=seconds)',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
when: {
|
when: {
|
||||||
ref: ['refs/heads/main', 'refs/tags/**'],
|
ref: ['refs/heads/main', 'refs/tags/**'],
|
||||||
|
@ -57,6 +57,8 @@ steps:
|
|||||||
- name: publish-dockerhub
|
- name: publish-dockerhub
|
||||||
image: thegeeklab/drone-docker-buildx:20
|
image: thegeeklab/drone-docker-buildx:20
|
||||||
settings:
|
settings:
|
||||||
|
build_args:
|
||||||
|
- BUILD_DATE=$$(date --rfc-3339=seconds)
|
||||||
dockerfile: Dockerfile.amd64
|
dockerfile: Dockerfile.amd64
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
@ -135,6 +137,8 @@ steps:
|
|||||||
- name: publish-dockerhub
|
- name: publish-dockerhub
|
||||||
image: thegeeklab/drone-docker-buildx:20
|
image: thegeeklab/drone-docker-buildx:20
|
||||||
settings:
|
settings:
|
||||||
|
build_args:
|
||||||
|
- BUILD_DATE=$$(date --rfc-3339=seconds)
|
||||||
dockerfile: Dockerfile.arm64
|
dockerfile: Dockerfile.arm64
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
@ -213,6 +217,8 @@ steps:
|
|||||||
- name: publish-dockerhub
|
- name: publish-dockerhub
|
||||||
image: thegeeklab/drone-docker-buildx:20
|
image: thegeeklab/drone-docker-buildx:20
|
||||||
settings:
|
settings:
|
||||||
|
build_args:
|
||||||
|
- BUILD_DATE=$$(date --rfc-3339=seconds)
|
||||||
dockerfile: Dockerfile.arm
|
dockerfile: Dockerfile.arm
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
@ -346,6 +352,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: b461e1964e0b2ac5b9154b81fa293d6dc99a082e63987d90a4e441b1667d26c8
|
hmac: 22ccba5c75de7c2c8bbccd66f0c7c2550d6d4edf6610bded6adc8d8668e19605
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -1,15 +1,17 @@
|
|||||||
FROM amd64/alpine:3.13@sha256:d0710affa17fad5f466a70159cc458227bd25d4afb39514ef662ead3e6c99515
|
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 maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
||||||
LABEL org.opencontainers.image.authors="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.title="alpine"
|
||||||
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/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.source="https://gitea.rknet.org/docker/alpine"
|
||||||
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/alpine"
|
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/alpine"
|
||||||
|
LABEL org.opencontainers.image.created="${BUILD_DATE}"
|
||||||
ARG GOMPLATE_VERSION
|
|
||||||
ARG SUPERCRONIC_VERSION
|
|
||||||
ARG URL_PARSER_VERSION
|
|
||||||
|
|
||||||
# renovate: datasource=github-releases depName=hairyhenderson/gomplate
|
# renovate: datasource=github-releases depName=hairyhenderson/gomplate
|
||||||
ENV GOMPLATE_VERSION="${GOMPLATE_VERSION:-v3.8.0}"
|
ENV GOMPLATE_VERSION="${GOMPLATE_VERSION:-v3.8.0}"
|
||||||
|
Loading…
Reference in New Issue
Block a user