Browse Source

fix: fix build version in ci

pull/79/head v2.0.23-1
Robert Kaussow 1 month ago
parent
commit
2490b779eb
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
  1. 14
      .drone.yml
  2. 5
      Dockerfile

14
.drone.yml

@ -32,6 +32,8 @@ steps:
commands:
- apt-get -qq update && apt-get install -yqq --no-install-recommends make
- make build
environment:
BUILD_VERSION: ${DRONE_TAG%-*}
- name: verify
image: dart:stable
@ -44,15 +46,9 @@ steps:
- name: dryrun
image: thegeeklab/drone-docker-buildx:20
settings:
build_args:
- BUILD_VERSION=${DRONE_TAG%-*}
dockerfile: Dockerfile
dry_run: true
password:
from_secret: docker_password
repo: thegeeklab/${DRONE_REPO_NAME}
username:
from_secret: docker_username
when:
ref:
- refs/pull/**
@ -92,8 +88,6 @@ steps:
- name: publish-dockerhub
image: thegeeklab/drone-docker-buildx:20
settings:
build_args:
- BUILD_VERSION=${DRONE_TAG%-*}
dockerfile: Dockerfile
password:
from_secret: docker_password
@ -110,8 +104,6 @@ steps:
- name: publish-quay
image: thegeeklab/drone-docker-buildx:20
settings:
build_args:
- BUILD_VERSION=${DRONE_TAG%-*}
dockerfile: Dockerfile
password:
from_secret: quay_password
@ -217,6 +209,6 @@ depends_on:
---
kind: signature
hmac: c395bc7653458c3fa8c3bd62cb9f615d3af8c53e7c929b1ea90b6c3a71738e6e
hmac: 8746fe501b443c4f93f766414ef030b10c28cdc0cc19ca5984601c4bb5f98bf6
...

5
Dockerfile

@ -7,13 +7,12 @@ LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/link-validato
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/link-validator"
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/link-validator"
ARG BUILD_VERSION
ARG CADDY_VERSION
ARG WAIT_FOR_VERSION
ARG CONTAINER_LIBRARY
# renovate: datasource=github-releases depName=caddyserver/caddy
ENV CADDY_VERSION="${BUILD_VERSION:-v2.5.1}"
ENV CADDY_VERSION="${CADDY_VERSION:-v2.5.1}"
# renovate: datasource=github-releases depName=thegeeklab/wait-for
ENV WAIT_FOR_VERSION="${WAIT_FOR_VERSION:-v0.2.0}"
# renovate: datasource=git-tags depName=https://gitea.rknet.org/docker/container-library

Loading…
Cancel
Save