commit 03696f822c5a65f908cfc61f47b86b14b7c81e04 Author: gwg313 Date: Tue Jul 1 01:09:12 2025 -0400 initial commit diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..571fcfd --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,18 @@ +--- +name: build-and-push +trigger: + event: + - push +steps: + build: + image: quay.io/buildah/stable + privileged: true + environment: + REGISTRY_USER: + from_secret: HARBOR_USERNAME + REGISTRY_PASS: + from_secret: HARBOR_PASSWORD + commands: + - buildah login -u "$REGISTRY_USER" -p "$REGISTRY_PASS" registry.gwg313.xyz + - buildah bud -t registry.gwg313.xyz/library/zmk-prebuilt:latest . + - buildah push registry.gwg313.xyz/library/zmk-prebuilt:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6c925f3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM docker.io/zmkfirmware/zmk-build-arm:3.5-branch + +WORKDIR /zmk + +COPY west.yml config/west.yml + +RUN apt update +RUN apt install -y --no-install-recommends curl + +RUN curl https://dl.min.io/client/mc/release/linux-amd64/mc \ + --create-dirs \ + -o /usr/local/bin/mc +RUN chmod +x /usr/local/bin/mc +ENV PATH="/usr/local/bin:${PATH}" + + +RUN west init -l config && \ + git config --global --add safe.directory "*" && \ + west update + +ENV ZEPHYR_BASE=/zmk/zephyr +ADD https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 /usr/local/bin/yq +RUN chmod +x /usr/local/bin/yq diff --git a/west.yml b/west.yml new file mode 100644 index 0000000..adc97b7 --- /dev/null +++ b/west.yml @@ -0,0 +1,11 @@ +manifest: + remotes: + - name: zmkfirmware + url-base: https://github.com/zmkfirmware + projects: + - name: zmk + remote: zmkfirmware + revision: main + import: app/west.yml + self: + path: config \ No newline at end of file