Skip to content

Commit f752181

Browse files
committed
Improve GitHub Actions CI workflow
1 parent 79191b7 commit f752181

3 files changed

Lines changed: 25 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
strategy:
2121
matrix:
22-
go: [ '1.15.x', '1.16.x' ]
22+
go: [ '1.16.x', '1.17.x' ]
2323

2424
steps:
2525
- name: Set up Go
@@ -85,7 +85,7 @@ jobs:
8585
needs: Go
8686

8787
env:
88-
HADOLINT_VERSION: 2.1.0
88+
HADOLINT_VERSION: 2.6.1
8989

9090
steps:
9191
- name: Checkout
@@ -101,3 +101,23 @@ jobs:
101101

102102
- name: Check Docker files
103103
run: ./hadolint Dockerfile
104+
105+
DockerBuild:
106+
name: Docker Build Check
107+
runs-on: ubuntu-latest
108+
109+
needs: Hadolint
110+
111+
steps:
112+
- name: Checkout
113+
uses: actions/checkout@v2
114+
115+
- name: Login to DockerHub
116+
uses: docker/login-action@v1
117+
with:
118+
username: ${{ secrets.DOCKERHUB_USERNAME }}
119+
password: ${{ secrets.DOCKERHUB_TOKEN }}
120+
121+
- name: Build CentOS 7 image
122+
run: |
123+
docker build -f Dockerfile -t centos7 .

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ RUN apk add --no-cache git=~2.30 make=4.3-r0 upx=3.96-r1 && \
1515

1616
## FINAL IMAGE #################################################################
1717

18-
FROM alpine:3.13
18+
FROM essentialkaos/alpine:3.13
1919

2020
LABEL name="SSLCLI Image" \
2121
vendor="ESSENTIAL KAOS" \
2222
maintainer="Anton Novojilov" \
2323
license="EKOL" \
24-
version="2021.05.01"
24+
version="2021.08.21"
2525

2626
COPY --from=builder /go/src/github.com/essentialkaos/sslcli/sslcli /usr/bin/
2727

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#### From source
2626

27-
To build the SSLScan Client from scratch, make sure you have a working Go 1.14+ workspace ([instructions](https://golang.org/doc/install)), then:
27+
To build the SSLScan Client from scratch, make sure you have a working Go 1.16+ workspace ([instructions](https://golang.org/doc/install)), then:
2828

2929
```
3030
go get github.com/essentialkaos/sslcli

0 commit comments

Comments
 (0)