mirror of
https://github.com/docker/docker-install.git
synced 2026-11-20 10:03:11 +03:00
Add GitHub actions
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
This commit is contained in:
2 files changed
+23
-45
No files matched your search
@@ -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
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user