Merge pull request #67 from docker-library/github-actions

Add initial GitHub Actions CI workflow
This commit is contained in:
Tianon Gravi 2019-10-28 09:51:54 -07:00 committed by GitHub
commit cb183f1ec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 34 deletions

50
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,50 @@
name: GitHub CI
on:
pull_request:
push:
branches:
- master
schedule:
- cron: 0 0 * * 0
jobs:
build-test:
strategy:
matrix:
libc:
- glibc
- musl
- uclibc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- 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: Build Tarball
run: ./build.sh ${{ matrix.libc }}
- name: Build Image
run: docker build -t busybox:${{ matrix.libc }} ${{ matrix.libc }}
- name: Run Tests
run: |
git clone --depth 1 https://github.com/docker-library/official-images.git ~/oi
~/oi/test/run.sh busybox:${{ matrix.libc }}
- name: '"docker images"'
run: docker images

View File

@ -1,34 +0,0 @@
language: bash
services: docker
branches:
except:
- /dist.*/
env:
- VERSION=glibc
- VERSION=musl
- VERSION=uclibc
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
- image="busybox:$VERSION"
script:
- |
(
set -Eeuo pipefail
set -x
./build.sh "$VERSION"
docker build -t "$image" "$VERSION"
~/official-images/test/run.sh "$image"
)
after_script:
- docker images
# vim:set et ts=2 sw=2: