From 32c00572dcf490c2b743e05d0eab0598b992f1d4 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Sat, 21 Aug 2021 00:20:21 +0300 Subject: [PATCH] Improve GitHub Actions CI workflow --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++--- README.md | 2 +- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f9aa140..87ad4801 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: - go: [ '1.15.x', '1.16.x' ] + go: [ '1.16.x', '1.17.x' ] steps: - name: Set up Go @@ -84,7 +84,7 @@ jobs: needs: Go env: - SHELLCHECK_VERSION: 0.7.1 + SHELLCHECK_VERSION: 0.7.2 steps: - name: Checkout @@ -113,7 +113,7 @@ jobs: needs: Go env: - HADOLINT_VERSION: 1.18.2 + HADOLINT_VERSION: 2.6.1 steps: - name: Checkout @@ -130,3 +130,23 @@ jobs: - name: Check Docker files run: | ./hadolint centos7.docker + + DockerBuild: + name: Docker Build Check + runs-on: ubuntu-latest + + needs: Hadolint + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build CentOS 7 image + run: | + docker build -f centos7.docker -t centos7 . diff --git a/README.md b/README.md index 060557c1..1ef1dcf8 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Information about bibop recipe syntax you can find in our [cookbook](COOKBOOK.md #### From source -To build the `bibop` from scratch, make sure you have a working Go 1.15+ workspace ([instructions](https://golang.org/doc/install)), then: +To build the `bibop` from scratch, make sure you have a working Go 1.16+ workspace ([instructions](https://golang.org/doc/install)), then: ``` go get github.com/essentialkaos/bibop