Skip to content

Commit

Permalink
Merge pull request #92 from docker-library/github-actions
Browse files Browse the repository at this point in the history
Add initial GitHub Actions CI
  • Loading branch information
yosifkit authored Apr 29, 2020
2 parents 8e76f48 + 4f3f74e commit cdaa5f1
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 38 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: GitHub CI

on:
pull_request:
push:
schedule:
- cron: 0 0 * * 0

defaults:
run:
shell: 'bash -Eeuo pipefail -x {0}'

jobs:

generate-jobs:
name: Generate Jobs
runs-on: ubuntu-latest
outputs:
strategy: ${{ steps.generate-jobs.outputs.strategy }}
steps:
- uses: actions/checkout@v1
- id: generate-jobs
name: Generate Jobs
run: |
git clone --depth 1 https://github.com/docker-library/bashbrew.git -b master ~/bashbrew
strategy="$(~/bashbrew/scripts/github-actions/generate.sh)"
jq . <<<"$strategy" # sanity check / debugging aid
echo "::set-output name=strategy::$strategy"
test:
needs: generate-jobs
strategy: ${{ fromJson(needs.generate-jobs.outputs.strategy) }}
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Prepare Environment
run: ${{ matrix.runs.prepare }}
- name: Pull Dependencies
run: ${{ matrix.runs.pull }}
- name: Build ${{ matrix.name }}
run: ${{ matrix.runs.build }}
- name: History ${{ matrix.name }}
run: ${{ matrix.runs.history }}
- name: Test ${{ matrix.name }}
run: ${{ matrix.runs.test }}
- name: '"docker images"'
run: ${{ matrix.runs.images }}
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ For outstanding `kibana` image PRs, check [PRs with the "library/kibana" label o

---

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

| Build | Status | Badges | (per-arch) |
|:-:|:-:|:-:|:-:|
| [![amd64 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/amd64/job/kibana.svg?label=amd64)](https://doi-janky.infosiftr.net/job/multiarch/job/amd64/job/kibana) | [![put-shared build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/put-shared/job/light/job/kibana.svg?label=put-shared)](https://doi-janky.infosiftr.net/job/put-shared/job/light/job/kibana) |
| [![amd64 build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/multiarch/job/amd64/job/kibana.svg?label=amd64)](https://doi-janky.infosiftr.net/job/multiarch/job/amd64/job/kibana/) | [![put-shared build status badge](https://img.shields.io/jenkins/s/https/doi-janky.infosiftr.net/job/put-shared/job/light/job/kibana.svg?label=put-shared)](https://doi-janky.infosiftr.net/job/put-shared/job/light/job/kibana/) |

<!-- THIS FILE IS GENERATED BY https://github.com/docker-library/docs/blob/master/generate-repo-stub-readme.sh -->
6 changes: 0 additions & 6 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ tags="$(
| sort -uV
)"

travisEnv=
for version in "${versions[@]}"; do
rcVersion="${version%-rc}"
rcGrepV='-v'
Expand Down Expand Up @@ -60,9 +59,4 @@ for version in "${versions[@]}"; do
-e 's!%%UPSTREAM_IMAGE_DIGEST%%!'"$upstreamImageDigest"'!g' \
-e 's!%%UPSTREAM_DOCKERFILE_LINK%%!'"$upstreamDockerfileLink"'!g' \
Dockerfile.template > "$version/Dockerfile"

travisEnv='\n - VERSION='"$version$travisEnv"
done

travis="$(awk -v 'RS=\n\n' '$1 == "env:" { $0 = "env:'"$travisEnv"'" } { printf "%s%s", $0, RS }' .travis.yml)"
cat <<<"$travis" > .travis.yml

0 comments on commit cdaa5f1

Please sign in to comment.