Compare commits

..

7 Commits

Author SHA1 Message Date
66efa5e17c Add repo links to README.md
All checks were successful
continuous-integration/drone/push Build is passing
Should make it easier to finds the original source.
2020-02-22 07:52:16 -08:00
d6c46b5c10 README.md update to describe new contents
All checks were successful
continuous-integration/drone/push Build is passing
Explains that this repo does not actually have any code and it merely
is an image wrapping an existing example script
2020-01-21 18:10:16 -08:00
356071570a update drone pipelines for new Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-21 18:00:35 -08:00
6ac78cbe89 Stop copying extra qemu files
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-21 17:52:45 -08:00
b11d6f6d88 WIP: Get started squashing things down 2020-01-21 17:46:39 -08:00
de8cf7aab8 WIP: Get started squashing things down 2020-01-21 17:44:02 -08:00
fea176f7f3 Update upstream example script 2020-01-21 17:29:05 -08:00
3 changed files with 33 additions and 42 deletions

View File

@ -1,15 +1,6 @@
---
kind: pipeline
name: linux-amd64
trigger:
event:
- push
- tag
refs:
- refs/heads/master
- refs/tags/v*
steps:
- name: build
@ -22,19 +13,17 @@ steps:
from_secret: docker_username
password:
from_secret: docker_password
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
@ -49,20 +38,18 @@ steps:
from_secret: docker_password
build_args:
- ARCH=arm
- REPO=arm32v7
- REPO=arm32v6
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 +65,12 @@ steps:
build_args:
- ARCH=aarch64
- REPO=arm64v8
when:
branch:
- master
event:
- push
- tag
---
kind: pipeline
@ -88,14 +81,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 +92,10 @@ steps:
from_secret: docker_username
password:
from_secret: docker_password
when:
branch:
- master
event:
- push
- tag

View File

@ -1,15 +1,14 @@
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-${ARCH}-* /usr/bin/
RUN mkdir -p /src
WORKDIR /src
@ -17,9 +16,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 cloudflare==$CF_VERSION
ENV DOMAIN=""

View File

@ -14,7 +14,7 @@ build:
.PHONY: cross-build-arm
cross-build-arm:
docker build --build-arg REPO=arm32v7 --build-arg ARCH=arm . -t ${DOCKER_TAG}-linux-arm
docker build --build-arg REPO=arm32v6 --build-arg ARCH=arm . -t ${DOCKER_TAG}-linux-arm
.PHONY: cross-build-arm64
cross-build-arm64: