Compare commits
20 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
13c49c5d3b | ||
![]() |
6d88501a81 | ||
![]() |
c03c21438b | ||
![]() |
d07efa9719 | ||
![]() |
e396ab8872 | ||
![]() |
a0f34cc3b1 | ||
![]() |
6bd9b7f10a | ||
![]() |
abe5cb58a4 | ||
![]() |
85cc95bf71 | ||
![]() |
216e6a8997 | ||
![]() |
c4ccfb4b1e | ||
![]() |
7fb3295695 | ||
![]() |
fa1587e732 | ||
![]() |
09e0ce9e42 | ||
![]() |
e291397333 | ||
![]() |
0d9b176669 | ||
![]() |
02cb82c4c7 | ||
![]() |
acc291ea59 | ||
![]() |
bda962a285 | ||
![]() |
a1bad7d051 |
70
.drone.yml
70
.drone.yml
@ -1,70 +0,0 @@
|
|||||||
---
|
|
||||||
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
|
|
43
.gitea/workflows/build.yml
Normal file
43
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
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,7 +1,16 @@
|
|||||||
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}
|
||||||
ARG CONFD_VERSION=0.16.0
|
# COPY --from=confd /go/confd/bin/confd /usr/local/bin/confd
|
||||||
ADD https://github.com/kelseyhightower/confd/releases/download/v${CONFD_VERSION}/confd-${CONFD_VERSION}-linux-amd64 /usr/local/bin/confd
|
ARG TARGETARCH
|
||||||
|
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