Compare commits
No commits in common. "main" and "bullseye-slim" have entirely different histories.
main
...
bullseye-s
42
.drone.yml
Normal file
42
.drone.yml
Normal file
@ -0,0 +1,42 @@
|
||||
---
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: eumau/debian
|
||||
auto_tag: true
|
||||
username:
|
||||
from_secret: dockerhub_username
|
||||
password:
|
||||
from_secret: dockerhub_password
|
||||
|
||||
trigger:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: tags
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
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}
|
||||
|
||||
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
|
||||
# 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}
|
||||
# COPY --from=confd /go/confd/bin/confd /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
|
||||
ARG CONFD_VERSION=0.16.0
|
||||
ADD https://github.com/kelseyhightower/confd/releases/download/v${CONFD_VERSION}/confd-${CONFD_VERSION}-linux-amd64 /usr/local/bin/confd
|
||||
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 \
|
||||
&& mkdir -p /etc/confd/conf.d /etc/confd/templates \
|
||||
|
Loading…
x
Reference in New Issue
Block a user