This commit is contained in:
commit
03696f822c
3 changed files with 52 additions and 0 deletions
18
.woodpecker.yml
Normal file
18
.woodpecker.yml
Normal file
|
|
@ -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
|
||||
23
Dockerfile
Normal file
23
Dockerfile
Normal file
|
|
@ -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
|
||||
11
west.yml
Normal file
11
west.yml
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue