diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e5ef30b --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 513c87a..0000000 --- a/.travis.yml +++ /dev/null @@ -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: