mirror of https://github.com/openwrt/docker.git
CI: add pull request test
this builds rootfs/sdk/imagebuilder containers for every PR. Signed-off-by: Paul Spooren <mail@aparcar.org>pull/10/head
parent
11a7d8a0b7
commit
a7fbe478dd
|
|
@ -1,5 +1,22 @@
|
|||
version: 2
|
||||
jobs:
|
||||
testbuild:
|
||||
machine:
|
||||
image: ubuntu-1604:201903-01
|
||||
steps:
|
||||
- run: sudo apt update && sudo apt install signify-openbsd
|
||||
- checkout
|
||||
- run: bash docker-common.sh
|
||||
- run:
|
||||
name: Create snapshot Rootfs container
|
||||
command: bash docker-rootfs.sh
|
||||
- run:
|
||||
name: Create snapshot ImageBuilder container
|
||||
command: bash docker-imagebuilder.sh
|
||||
- run:
|
||||
name: Create snapshot SDK container
|
||||
command: bash docker-sdk.sh
|
||||
|
||||
rootfs-snapshot:
|
||||
machine: true
|
||||
steps:
|
||||
|
|
@ -11,6 +28,7 @@ jobs:
|
|||
environment:
|
||||
DOCKER_IMAGE: "openwrtorg/rootfs"
|
||||
TARGETS: "x86-64 armvirt-32 armvirt-64"
|
||||
|
||||
imagebuilder-snapshot:
|
||||
machine: true
|
||||
steps:
|
||||
|
|
@ -22,6 +40,7 @@ jobs:
|
|||
environment:
|
||||
DOCKER_IMAGE: "openwrtorg/imagebuilder"
|
||||
TARGETS: "cns3xxx-generic mvebu-cortexa53 mvebu-cortexa72 mvebu-cortexa9 ipq40xx-generic ipq806x-generic layerscape-armv7 layerscape-armv8_32b layerscape-armv8_64b imx6-generic octeontx-generic sunxi-cortexa8 sunxi-cortexa53 sunxi-cortexa7 ppc44x-generic bcm53xx-generic brcm47xx-mips74k brcm47xx-generic brcm47xx-legacy ath79-nand ath79-generic ath79-tiny ath25-generic mcs814x-generic ar7-ac49x ar7-generic kirkwood-generic apm821xx-sata apm821xx-nand ramips-rt305x ramips-rt3883 ramips-mt76x8 ramips-mt7620 ramips-rt288x ramips-mt7621 au1000-au1550 au1000-au1500 pistachio-generic gemini-wiligear gemini-generic gemini-raidsonic brcm2708-bcm2708 brcm2708-bcm2709 brcm2708-bcm2710 x86-geode x86-generic x86-legacy x86-64 lantiq-xway_legacy lantiq-xrx200 lantiq-ase lantiq-falcon lantiq-xway mediatek-mt7622 mediatek-mt7623 mediatek-32 mpc85xx-p1020 mpc85xx-p2020 mpc85xx-generic tegra-generic zynq-generic archs38-generic ixp4xx-harddisk ixp4xx-generic mxs-generic oxnas-ox820 octeon-generic armvirt-32 armvirt-64 arc770-generic adm8668-generic xburst-qi_lb60 samsung-s5pv210 omap-generic ar71xx-nand ar71xx-generic ar71xx-tiny ar71xx-mikrotik brcm63xx-generic brcm63xx-smp at91-sama5d3 at91-sama5d4 at91-sam9x at91-sama5 at91-legacy at91-sama5d2 rb532-generic malta-le malta-be malta-be64 malta-le64"
|
||||
|
||||
sdk-snapshot:
|
||||
machine: true
|
||||
steps:
|
||||
|
|
@ -36,7 +55,17 @@ jobs:
|
|||
|
||||
workflows:
|
||||
version: 2
|
||||
docker:
|
||||
testbuild:
|
||||
jobs:
|
||||
- testbuild:
|
||||
filters:
|
||||
branches:
|
||||
ignore: master
|
||||
dockerbuild:
|
||||
jobs:
|
||||
- rootfs-snapshot
|
||||
- imagebuilder-snapshot
|
||||
- sdk-snapshot
|
||||
triggers:
|
||||
- schedule:
|
||||
cron: "0 0 * * *"
|
||||
|
|
@ -44,7 +73,3 @@ workflows:
|
|||
branches:
|
||||
only:
|
||||
- master
|
||||
jobs:
|
||||
- rootfs-snapshot
|
||||
- imagebuilder-snapshot
|
||||
- sdk-snapshot
|
||||
|
|
|
|||
Loading…
Reference in New Issue