21 Commits

Author SHA1 Message Date
20e0155e8c fix pipe
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-29 18:31:58 +01:00
dcb47da9f7 fix pipe
Some checks failed
continuous-integration/drone/push Build is failing
2025-03-29 18:28:53 +01:00
be642e2c4d fix pipe
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2025-03-29 18:26:16 +01:00
46585688c6 update pipeline
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2025-03-29 18:22:57 +01:00
837235524a fix pipe
Some checks failed
continuous-integration/drone/push Build is failing
2025-03-29 17:52:32 +01:00
92223686ff fix pipe...
Some checks failed
continuous-integration/drone/push Build is failing
2025-03-29 17:46:50 +01:00
8a9583e3a3 fix pipe???
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-29 17:41:49 +01:00
1fb403fd64 fix pipe
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-29 17:37:39 +01:00
fb01815c85 fix yaml
Some checks failed
continuous-integration/drone/tag Build is failing
2025-03-29 17:30:59 +01:00
9c11f1705c also push to latest
Some checks reported errors
continuous-integration/drone/tag Build encountered an error
2025-03-29 17:27:50 +01:00
aad30fda0f also push to latest
All checks were successful
continuous-integration/drone/tag Build is passing
2025-03-29 17:18:32 +01:00
3b63958dce also push to latest
All checks were successful
continuous-integration/drone/tag Build is passing
2025-03-29 17:07:29 +01:00
d8a3cba654 switch to tags
All checks were successful
continuous-integration/drone/tag Build is passing
2025-03-29 17:01:10 +01:00
844ac546e5 specify platform
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-28 22:38:01 +01:00
f121308163 Update README.md
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-28 14:06:20 +01:00
581ee0ddf7 Revert "Merge pull request 'Update ubuntu Docker tag to v24' (#2) from renovate/ubuntu-24.x into master"
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit 31a1ad4e72, reversing
changes made to f8ee0b97d6.
2025-03-27 00:32:39 +01:00
31a1ad4e72 Merge pull request 'Update ubuntu Docker tag to v24' (#2) from renovate/ubuntu-24.x into master
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #2
2025-03-27 00:27:21 +01:00
f8ee0b97d6 speedup docker manifest
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-27 00:25:21 +01:00
a7a9d8da38 specify node arch in .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-27 00:17:28 +01:00
9f94cce6e1 Revert "try arm build"
Some checks reported errors
continuous-integration/drone/push Build was killed
This reverts commit f268698aa6.
2025-03-27 00:13:25 +01:00
f268698aa6 try arm build
Some checks reported errors
continuous-integration/drone/push Build was killed
2025-03-27 00:03:11 +01:00
5 changed files with 114 additions and 52 deletions

View File

@@ -1,70 +1,130 @@
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: linux-amd64 name: amd64-main
platform: node_selector: # Ensure this runs on an amd64 runner
os: linux kubernetes.io/arch: amd64
arch: amd64 trigger: # Only run on pushes to the main branch
trigger: event: [ push ]
event: branch: [ main ]
- push
steps: steps:
- name: docker - name: build_push_amd64_latest
image: plugins/docker image: plugins/docker # Use Docker plugin to build and push image
settings: settings:
repo: bottledpills/deluge-openvpn
dockerfile: docker/Dockerfile.amd64 dockerfile: docker/Dockerfile.amd64
tags:
- latest-linux-amd64 # Tag for amd64 variant (main branch → "latest")
username: username:
from_secret: docker_username from_secret: docker_username # Docker registry credentials (secret)
password: password:
from_secret: docker_password from_secret: docker_password
repo: bottledpills/deluge-openvpn
auto_tag: true
auto_tag_suffix: linux-amd64
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: linux-arm64 name: arm64-main
platform: node_selector: # Ensure this runs on an arm64 runner
os: linux kubernetes.io/arch: arm64
arch: arm64 trigger: # Only run on pushes to the main branch
trigger: event: [ push ]
event: branch: [ main ]
- push
steps: steps:
- name: docker - name: build_push_arm64_latest
image: plugins/docker image: plugins/docker
settings: settings:
repo: bottledpills/deluge-openvpn
dockerfile: docker/Dockerfile.arm64 dockerfile: docker/Dockerfile.arm64
tags:
- latest-linux-arm64 # Tag for arm64 variant (main branch → "latest")
username: username:
from_secret: docker_username from_secret: docker_username
password: password:
from_secret: docker_password from_secret: docker_password
repo: bottledpills/deluge-openvpn
auto_tag: true
auto_tag_suffix: linux-arm64
--- ---
kind: pipeline kind: pipeline
type: kubernetes type: kubernetes
name: manifest name: amd64-tag
platform: node_selector:
os: linux kubernetes.io/arch: amd64
arch: amd64 trigger: # Only run on creation of Git tags (releases)
trigger: event: [ tag ]
event:
- push
steps: steps:
- name: manifest - name: build_push_amd64_version
image: plugins/docker
settings:
repo: bottledpills/deluge-openvpn
dockerfile: docker/Dockerfile.amd64
# Use Drone env substitution to strip the leading "v" from the tag [oai_citation_attribution:0‡docs.drone.io](https://docs.drone.io/pipeline/environment/substitution/#:~:text=,0)
tags:
- ${DRONE_TAG##v}-linux-amd64 # e.g. "v2.0.1" → "2.0.1-linux-amd64"
username:
from_secret: docker_username
password:
from_secret: docker_password
---
kind: pipeline
type: kubernetes
name: arm64-tag
node_selector:
kubernetes.io/arch: arm64
trigger: # Only run on creation of Git tags (releases)
event: [ tag ]
steps:
- name: build_push_arm64_version
image: plugins/docker
settings:
repo: bottledpills/deluge-openvpn
dockerfile: docker/Dockerfile.arm64
tags:
- ${DRONE_TAG##v}-linux-arm64 # e.g. "v2.0.1" → "2.0.1-linux-arm64"
username:
from_secret: docker_username
password:
from_secret: docker_password
---
kind: pipeline
type: kubernetes
name: manifest-main
# The manifest step can run on either architecture; we'll use amd64 for consistency
node_selector:
kubernetes.io/arch: amd64
trigger: # Run on main branch pushes (to create "latest" manifest)
event: [ push ]
branch: [ main ]
depends_on: # Wait for both arch images to be built and pushed
- amd64-main
- arm64-main
steps:
- name: push_manifest_latest
image: plugins/manifest # Drone manifest plugin to create multi-arch manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
spec: docker/manifest.tmpl # Use external manifest template for tags and images
---
kind: pipeline
type: kubernetes
name: manifest-tag
node_selector:
kubernetes.io/arch: amd64
trigger: # Run on tag events (to create versioned manifest)
event: [ tag ]
depends_on:
- amd64-tag
- arm64-tag
steps:
- name: push_manifest_version
image: plugins/manifest image: plugins/manifest
settings: settings:
spec: docker/manifest.tmpl
username: username:
from_secret: docker_username from_secret: docker_username
password: password:
from_secret: docker_password from_secret: docker_password
auto_tag: true spec: docker/manifest.tmpl # Same template handles both latest and version tags
ignore_missing: true
depends_on:
- linux-amd64
- linux-arm64

View File

@@ -1,7 +1,7 @@
# OpenVPN and Deluge with WebUI # OpenVPN and Deluge with WebUI
![Build/Push (master)](https://github.com/ebrianne/docker-deluge-openvpn/workflows/Build/Push%20(master)/badge.svg?branch=master) [![Build Status](https://drone.beatrice.wtf/api/badges/bea/docker-deluge-openvpn/status.svg)](https://drone.beatrice.wtf/bea/docker-deluge-openvpn)
[![Docker Pulls](https://img.shields.io/docker/pulls/ebrianne/docker-deluge-openvpn.svg)](https://hub.docker.com/r/ebrianne/docker-deluge-openvpn/) [![Docker Pulls](https://img.shields.io/docker/pulls/bottledpills/deluge-openvpn.svg)](https://hub.docker.com/r/bottledpills/deluge-openvpn/)
## Acknowledgments ## Acknowledgments

View File

@@ -1,4 +1,4 @@
FROM ubuntu:24.04 FROM ubuntu:22.04
ARG DEBIAN_FRONTEND="noninteractive" ARG DEBIAN_FRONTEND="noninteractive"
ENV DUMB_INIT_BASE_URL="https://github.com/Yelp/dumb-init/releases/download/v1.2.5" ENV DUMB_INIT_BASE_URL="https://github.com/Yelp/dumb-init/releases/download/v1.2.5"

View File

@@ -1,4 +1,4 @@
FROM ubuntu:24.04 FROM ubuntu:22.04
ARG DEBIAN_FRONTEND="noninteractive" ARG DEBIAN_FRONTEND="noninteractive"
ENV DUMB_INIT_BASE_URL="https://github.com/Yelp/dumb-init/releases/download/v1.2.5" ENV DUMB_INIT_BASE_URL="https://github.com/Yelp/dumb-init/releases/download/v1.2.5"

View File

@@ -1,12 +1,14 @@
# docker/manifest.tmpl
image: bottledpills/deluge-openvpn:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} image: bottledpills/deluge-openvpn:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
manifests: manifests:
- - image: bottledpills/deluge-openvpn:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
image: bottledpills/deluge-openvpn:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 platform:
platform: architecture: amd64
architecture: amd64 os: linux
os: linux
- - image: bottledpills/deluge-openvpn:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
image: bottledpills/deluge-openvpn:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 platform:
platform: architecture: arm64
architecture: arm64 os: linux
os: linux variant: v8