Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
a55e275825 | |||
8e76fcee4a | |||
5f161ae51b |
59
.drone.yml
59
.drone.yml
@ -2,14 +2,6 @@
|
||||
kind: pipeline
|
||||
name: linux-amd64
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
refs:
|
||||
- refs/heads/master
|
||||
- refs/tags/v*
|
||||
|
||||
steps:
|
||||
|
||||
- name: build
|
||||
@ -22,19 +14,18 @@ steps:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
dry_run: true
|
||||
when:
|
||||
# branch:
|
||||
# - master
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: linux-arm
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
refs:
|
||||
- refs/heads/master
|
||||
- refs/tags/v*
|
||||
|
||||
steps:
|
||||
|
||||
- name: build
|
||||
@ -50,19 +41,18 @@ steps:
|
||||
build_args:
|
||||
- ARCH=arm
|
||||
- REPO=arm32v7
|
||||
dry_run: true
|
||||
when:
|
||||
# branch:
|
||||
# - master
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: linux-arm64
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
refs:
|
||||
- refs/heads/master
|
||||
- refs/tags/v*
|
||||
|
||||
steps:
|
||||
|
||||
- name: build
|
||||
@ -78,6 +68,13 @@ steps:
|
||||
build_args:
|
||||
- ARCH=aarch64
|
||||
- REPO=arm64v8
|
||||
dry_run: true
|
||||
when:
|
||||
# branch:
|
||||
# - master
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@ -88,14 +85,6 @@ depends_on:
|
||||
- linux-arm
|
||||
- linux-arm64
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
refs:
|
||||
- refs/heads/master
|
||||
- refs/tags/v*
|
||||
|
||||
steps:
|
||||
- name: publish manifest
|
||||
image: plugins/manifest
|
||||
@ -107,3 +96,9 @@ steps:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
|
14
Dockerfile
14
Dockerfile
@ -1,15 +1,15 @@
|
||||
ARG REPO=library
|
||||
|
||||
FROM multiarch/qemu-user-static:4.2.0-2 as qemu-user-static
|
||||
FROM multiarch/qemu-user-static:4.1.0-1 as qemu-user-static
|
||||
# Make sure a dummy x86_64 file exists so that the copy command doesn't error
|
||||
# RUN touch /usr/bin/qemu-x86_64-fake
|
||||
RUN touch /usr/bin/qemu-x86_64-fake
|
||||
|
||||
FROM ${REPO}/python:3.8-alpine
|
||||
FROM ${REPO}/python:3-alpine
|
||||
|
||||
# Copy mutliarch file to run builds on x86_64
|
||||
ARG ARCH=x86_64
|
||||
COPY --from=qemu-user-static /usr/bin/qemu-* /usr/bin/
|
||||
# COPY --from=qemu-user-static /usr/bin/qemu-${ARCH}-* /usr/bin/
|
||||
# COPY --from=qemu-user-static /usr/bin/qemu-* /usr/bin/
|
||||
COPY --from=qemu-user-static /usr/bin/qemu-${ARCH}-* /usr/bin/
|
||||
|
||||
RUN mkdir -p /src
|
||||
WORKDIR /src
|
||||
@ -17,9 +17,9 @@ WORKDIR /src
|
||||
# Get Cloudflare example script
|
||||
ENV CF_VERSION=2.6.0
|
||||
ADD https://raw.githubusercontent.com/cloudflare/python-cloudflare/$CF_VERSION/examples/example_update_dynamic_dns.py ./update_ddns.py
|
||||
RUN chmod +rx ./update_ddns.py
|
||||
RUN chmod +x ./update_ddns.py
|
||||
|
||||
RUN python -m pip install --no-cache-dir cloudflare==$CF_VERSION
|
||||
RUN pip install --no-cache-dir cloudflare==$CF_VERSION
|
||||
|
||||
ENV DOMAIN=""
|
||||
|
||||
|
@ -26,9 +26,3 @@ Or by providing a file mounted to the working directory in the image, `/src/.clo
|
||||
Then run. To execute from this directory, you can use the convenient Make target.
|
||||
|
||||
make run
|
||||
|
||||
## Source
|
||||
|
||||
Original source: https://git.iamthefij.com/iamthefij/docker-cloudflare-ddns
|
||||
|
||||
Github mirror: https://github.com/iamthefij/docker-cloudflare-ddns
|
Loading…
Reference in New Issue
Block a user