From 3d4dc552d661cd0c4bf2ac377a97fc7c4f61e812 Mon Sep 17 00:00:00 2001 From: Stefan Scherer Date: Thu, 13 Feb 2020 07:54:41 +0100 Subject: [PATCH] Add GitHub actions Signed-off-by: Stefan Scherer --- .github/workflows/ci.yml | 23 ++++++++++++++++++++ Jenkinsfile | 45 ---------------------------------------- 2 files changed, 23 insertions(+), 45 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 Jenkinsfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c68aa34 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 9b0c7fe..0000000 --- a/Jenkinsfile +++ /dev/null @@ -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 - } -}