Compare commits
No commits in common. "main" and "bookworm" have entirely different histories.
70
.drone.yml
Normal file
70
.drone.yml
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: docker amd64
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: eumau/debian
|
||||||
|
auto_tag: true
|
||||||
|
username:
|
||||||
|
from_secret: dockerhub_username
|
||||||
|
password:
|
||||||
|
from_secret: dockerhub_password
|
||||||
|
platform: linux/amd64
|
||||||
|
|
||||||
|
- name: docker arm64
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: eumau/debian
|
||||||
|
auto_tag: true
|
||||||
|
username:
|
||||||
|
from_secret: dockerhub_username
|
||||||
|
password:
|
||||||
|
from_secret: dockerhub_password
|
||||||
|
platform: linux/arm64
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: tags
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: docker amd64
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: eumau/debian
|
||||||
|
auto_tag: false
|
||||||
|
username:
|
||||||
|
from_secret: dockerhub_username
|
||||||
|
password:
|
||||||
|
from_secret: dockerhub_password
|
||||||
|
tags:
|
||||||
|
- ${DRONE_TAG}
|
||||||
|
build_args:
|
||||||
|
- DEBIAN_VERSION=${DRONE_TAG}
|
||||||
|
platform: linux/amd64
|
||||||
|
|
||||||
|
- name: docker arm64
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: eumau/debian
|
||||||
|
auto_tag: false
|
||||||
|
username:
|
||||||
|
from_secret: dockerhub_username
|
||||||
|
password:
|
||||||
|
from_secret: dockerhub_password
|
||||||
|
tags:
|
||||||
|
- ${DRONE_TAG}
|
||||||
|
build_args:
|
||||||
|
- DEBIAN_VERSION=${DRONE_TAG}
|
||||||
|
platform: linux/arm64
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- tag
|
@ -1,43 +0,0 @@
|
|||||||
name: Build Docker images
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
docker:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: true
|
|
||||||
matrix:
|
|
||||||
repo:
|
|
||||||
- eumau/debian
|
|
||||||
version:
|
|
||||||
- buster
|
|
||||||
- bullseye
|
|
||||||
- bookworm
|
|
||||||
variant:
|
|
||||||
- ""
|
|
||||||
- -slim
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
-
|
|
||||||
name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
-
|
|
||||||
name: Build and push image
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
tags: ${{ matrix.repo }}:${{ matrix.version }}${{ matrix.variant }}
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
13
Dockerfile
13
Dockerfile
@ -1,16 +1,7 @@
|
|||||||
ARG DEBIAN_VERSION=bullseye-slim
|
ARG DEBIAN_VERSION=bullseye-slim
|
||||||
# FROM golang:${DEBIAN_VERSION%-*} as confd
|
|
||||||
# RUN apt-get update \
|
|
||||||
# && apt-get install -y \
|
|
||||||
# build-essential \
|
|
||||||
# && git clone https://github.com/kelseyhightower/confd.git \
|
|
||||||
# && cd confd \
|
|
||||||
# && make
|
|
||||||
|
|
||||||
FROM debian:${DEBIAN_VERSION}
|
FROM debian:${DEBIAN_VERSION}
|
||||||
# COPY --from=confd /go/confd/bin/confd /usr/local/bin/confd
|
ARG CONFD_VERSION=0.16.0
|
||||||
ARG TARGETARCH
|
ADD https://github.com/kelseyhightower/confd/releases/download/v${CONFD_VERSION}/confd-${CONFD_VERSION}-linux-amd64 /usr/local/bin/confd
|
||||||
ADD https://github.com/kelseyhightower/confd/releases/download/v0.16.0/confd-0.16.0-linux-${TARGETARCH} /usr/local/bin/confd
|
|
||||||
RUN mkdir -p /start.d \
|
RUN mkdir -p /start.d \
|
||||||
&& printf '#!/bin/bash\nset -e\n/usr/local/bin/confd -onetime -backend env\nrun-parts -v /start.d\nexec ${@}\n' > /entrypoint.sh \
|
&& printf '#!/bin/bash\nset -e\n/usr/local/bin/confd -onetime -backend env\nrun-parts -v /start.d\nexec ${@}\n' > /entrypoint.sh \
|
||||||
&& mkdir -p /etc/confd/conf.d /etc/confd/templates \
|
&& mkdir -p /etc/confd/conf.d /etc/confd/templates \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user