feat(build): Add Docker build
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
c91e7a1989
commit
cb4958ae3f
39
.woodpecker.yml
Normal file
39
.woodpecker.yml
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
steps:
|
||||||
|
build:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
settings:
|
||||||
|
dry-run: true
|
||||||
|
repo: git.merp.digital/${CI_REPO_OWNER}/${CI_REPO_NAME}
|
||||||
|
platforms: linux/amd64
|
||||||
|
registry: git.merp.digital
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch:
|
||||||
|
exclude: [develop, master]
|
||||||
|
|
||||||
|
publish-nightly:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
settings:
|
||||||
|
repo: git.merp.digital/${CI_REPO_OWNER}/${CI_REPO_NAME}
|
||||||
|
platforms: linux/amd64
|
||||||
|
registry: git.merp.digital
|
||||||
|
tags: develop
|
||||||
|
username: ${CI_REPO_OWNER}
|
||||||
|
password:
|
||||||
|
from_secret: cb_token
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: develop
|
||||||
|
|
||||||
|
publish-release:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
settings:
|
||||||
|
repo: git.merp.digital/${CI_REPO_OWNER}/${CI_REPO_NAME}
|
||||||
|
platforms: linux/amd64
|
||||||
|
registry: git.merp.digital
|
||||||
|
tags: ["latest", "${CI_COMMIT_TAG}"]
|
||||||
|
username: ${CI_REPO_OWNER}
|
||||||
|
password:
|
||||||
|
from_secret: cb_token
|
||||||
|
when:
|
||||||
|
- event: tag
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
FROM ghcr.io/cross-rs/mips-unknown-linux-musl:latest
|
||||||
|
RUN apt update && apt install -y git wget subversion build-essential libncurses5-dev zlib1g-dev gawk flex quilt git-core unzip libssl-dev python-dev python-pip libxml-parser-perl time
|
||||||
|
|
||||||
|
RUN git clone https://github.com/OnionIoT/source.git
|
||||||
|
|
||||||
|
COPY openwrt-build-config source/.config
|
||||||
|
|
||||||
|
ENV FORCE_UNSAFE_CONFIGURE=1
|
||||||
|
RUN cd source && make -j12
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2024 zenermerps
|
Copyright (c) 2024 zenermerps (Andreas Mieke)
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
|
2966
openwrt-build-config
Normal file
2966
openwrt-build-config
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue