Add GitHub actions

Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
This commit is contained in:
Stefan Scherer committed 2020-02-13 08:10:56 +01:00
1 parent ecfa0264ab
commit 3d4dc552d6
2 files changed
+23 -45

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
name: docker-install CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
os:
- ubuntu:18.04
- centos:7
version:
- 19.03
- 18.09
- ""
steps:
- uses: actions/checkout@v2
- name: Shellcheck
run: make shellcheck
- name: Check distribution
run: TEST_IMAGE=${{ matrix.os }} VERSION=${{ matrix.version }} make test
Vendored
-45
View File
@@ -1,45 +0,0 @@
#!groovy
def VERSION="18.09"
pipeline {
agent {
label "linux&&x86_64"
}
stages {
stage("shellcheck") {
steps {
sh "make shellcheck"
}
}
// Test out that the script will work for distros / version pinning
stage("Check distributions / version pinning") {
// NOTE: These can all technically run on the same node since they
// run in containers
parallel {
stage("Ubuntu 18.04") {
steps {
sh "TEST_IMAGE=ubuntu:18.04 make test"
}
}
stage("Ubuntu 18.04 / version pinning") {
steps {
sh "TEST_IMAGE=ubuntu:18.04 VERSION=${VERSION} make test"
}
}
stage("Centos 7") {
steps {
sh "TEST_IMAGE=centos:7 make test"
}
}
stage("Centos 7 / version pinning") {
steps {
sh "TEST_IMAGE=centos:7 VERSION=${VERSION} make test"
}
}
}
}
// TODO: add release step here to upload to S3
}
}