Skip to content

Commit 9ef4804

Browse files
authored
Merge pull request #73 from docker-library/github-actions
Add initial GitHub Actions CI
2 parents eff5b9a + bf64724 commit 9ef4804

File tree

3 files changed

+66
-25
lines changed

3 files changed

+66
-25
lines changed

.github/workflows/ci.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: GitHub CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
schedule:
7+
- cron: 0 0 * * 0
8+
9+
defaults:
10+
run:
11+
shell: 'bash -Eeuo pipefail -x {0}'
12+
13+
jobs:
14+
15+
verify:
16+
name: Verify Binaries
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v1
20+
- name: Update Binaries
21+
run: ./update.sh
22+
- name: Verify Changes
23+
run: |
24+
changes="$(git status --porcelain '**/hello' '**/nanoserver*/hello.txt')"
25+
test -z "$changes"
26+
27+
generate-jobs:
28+
needs: verify
29+
name: Generate Jobs
30+
runs-on: ubuntu-latest
31+
outputs:
32+
strategy: ${{ steps.generate-jobs.outputs.strategy }}
33+
steps:
34+
- uses: actions/checkout@v1
35+
- id: generate-jobs
36+
name: Generate Jobs
37+
run: |
38+
git clone --depth 1 https://github.com/docker-library/bashbrew.git -b master ~/bashbrew
39+
strategy="$(~/bashbrew/scripts/github-actions/generate.sh)"
40+
jq . <<<"$strategy" # sanity check / debugging aid
41+
echo "::set-output name=strategy::$strategy"
42+
43+
test:
44+
needs: generate-jobs
45+
strategy: ${{ fromJson(needs.generate-jobs.outputs.strategy) }}
46+
name: ${{ matrix.name }}
47+
runs-on: ${{ matrix.os }}
48+
steps:
49+
- uses: actions/checkout@v1
50+
- name: Prepare Environment
51+
run: ${{ matrix.runs.prepare }}
52+
- name: Pull Dependencies
53+
run: ${{ matrix.runs.pull }}
54+
- name: Build ${{ matrix.name }}
55+
run: ${{ matrix.runs.build }}
56+
- name: History ${{ matrix.name }}
57+
run: ${{ matrix.runs.history }}
58+
- name: Test ${{ matrix.name }}
59+
run: ${{ matrix.runs.test }}
60+
- name: '"docker images"'
61+
run: ${{ matrix.runs.images }}

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ For outstanding `hello-world` image PRs, check [PRs with the "library/hello-worl
1414

1515
---
1616

17-
- [![build status badge](https://img.shields.io/travis/docker-library/hello-world/master.svg?label=Travis%20CI)](https://travis-ci.org/docker-library/hello-world/branches)
18-
- [![build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/update.sh/job/hello-world.svg?label=Automated%20update.sh)](https://doi-janky.infosiftr.net/job/update.sh/job/hello-world)
17+
- [![build status badge](https://img.shields.io/github/workflow/status/docker-library/hello-world/GitHub%20CI/master?label=GitHub%20CI)](https://github.com/docker-library/hello-world/actions?query=workflow%3A%22GitHub+CI%22+branch%3Amaster)
18+
- [![build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/update.sh/job/hello-world.svg?label=Automated%20update.sh)](https://doi-janky.infosiftr.net/job/update.sh/job/hello-world/)
1919

2020
| Build | Status | Badges | (per-arch) |
2121
|:-:|:-:|:-:|:-:|
22-
| [![amd64 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/amd64/job/hello-world.svg?label=amd64)](https://doi-janky.infosiftr.net/job/multiarch/job/amd64/job/hello-world) | [![arm32v5 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/arm32v5/job/hello-world.svg?label=arm32v5)](https://doi-janky.infosiftr.net/job/multiarch/job/arm32v5/job/hello-world) | [![arm32v7 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/arm32v7/job/hello-world.svg?label=arm32v7)](https://doi-janky.infosiftr.net/job/multiarch/job/arm32v7/job/hello-world) | [![arm64v8 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/arm64v8/job/hello-world.svg?label=arm64v8)](https://doi-janky.infosiftr.net/job/multiarch/job/arm64v8/job/hello-world) |
23-
| [![i386 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/i386/job/hello-world.svg?label=i386)](https://doi-janky.infosiftr.net/job/multiarch/job/i386/job/hello-world) | [![ppc64le build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/ppc64le/job/hello-world.svg?label=ppc64le)](https://doi-janky.infosiftr.net/job/multiarch/job/ppc64le/job/hello-world) | [![s390x build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/s390x/job/hello-world.svg?label=s390x)](https://doi-janky.infosiftr.net/job/multiarch/job/s390x/job/hello-world) | [![windows-amd64 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/windows-amd64/job/hello-world.svg?label=windows-amd64)](https://doi-janky.infosiftr.net/job/multiarch/job/windows-amd64/job/hello-world) |
24-
| [![put-shared build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/put-shared/job/light/job/hello-world.svg?label=put-shared)](https://doi-janky.infosiftr.net/job/put-shared/job/light/job/hello-world) |
22+
| [![amd64 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/amd64/job/hello-world.svg?label=amd64)](https://doi-janky.infosiftr.net/job/multiarch/job/amd64/job/hello-world/) | [![arm32v5 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/arm32v5/job/hello-world.svg?label=arm32v5)](https://doi-janky.infosiftr.net/job/multiarch/job/arm32v5/job/hello-world/) | [![arm32v7 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/arm32v7/job/hello-world.svg?label=arm32v7)](https://doi-janky.infosiftr.net/job/multiarch/job/arm32v7/job/hello-world/) | [![arm64v8 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/arm64v8/job/hello-world.svg?label=arm64v8)](https://doi-janky.infosiftr.net/job/multiarch/job/arm64v8/job/hello-world/) |
23+
| [![i386 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/i386/job/hello-world.svg?label=i386)](https://doi-janky.infosiftr.net/job/multiarch/job/i386/job/hello-world/) | [![mips64le build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/mips64le/job/hello-world.svg?label=mips64le)](https://doi-janky.infosiftr.net/job/multiarch/job/mips64le/job/hello-world/) | [![ppc64le build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/ppc64le/job/hello-world.svg?label=ppc64le)](https://doi-janky.infosiftr.net/job/multiarch/job/ppc64le/job/hello-world/) | [![s390x build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/s390x/job/hello-world.svg?label=s390x)](https://doi-janky.infosiftr.net/job/multiarch/job/s390x/job/hello-world/) |
24+
| [![windows-amd64 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/windows-amd64/job/hello-world.svg?label=windows-amd64)](https://doi-janky.infosiftr.net/job/multiarch/job/windows-amd64/job/hello-world/) | [![put-shared build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/put-shared/job/light/job/hello-world.svg?label=put-shared)](https://doi-janky.infosiftr.net/job/put-shared/job/light/job/hello-world/) |
2525

2626
<!-- THIS FILE IS GENERATED BY https://github.com/docker-library/docs/blob/master/generate-repo-stub-readme.sh -->

0 commit comments

Comments
 (0)