forked from boot2docker/boot2docker
-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (38 loc) · 1.14 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: GitHub CI
on:
pull_request:
push:
schedule:
- cron: 0 0 * * 0
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: silver886/github-actions/checkout@master
- name: Prepare Environment
run: docker system prune --all --force --volumes
- name: Happy Eyeballs
run: wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
- name: Check Kernel Config
run: |
kernDups="$(files/kernel-config.d/.check-dups.sh)"
if [ -n "$kernDups" ]; then
echo >&2 "KERNEL CONFIG DUPLICATES!"
echo >&2 "$kernDups"
exit 1
fi
- name: Build ISO
run: |
set -Eeuo pipefail -x
docker build -t boot2docker/boot2docker .
docker run --rm boot2docker/boot2docker > boot2docker.iso
- name: '"ls"'
run: ls -lh boot2docker.iso
- name: Save to artifacts
uses: actions/upload-artifact@v3
with:
name: boot2docker.iso
path: boot2docker.iso
- name: '"docker images"'
run: docker images