Skip to content

Commit

Permalink
update pullrequest action
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Feb 14, 2022
1 parent 672ce11 commit f5da79a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ci-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,21 @@ name: "CI: docker build"
on: [pull_request]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag webdevops/azure-k8s-autopilot:$(date +%s)
- uses: actions/checkout@v2

- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: ./...

- name: Run Golangci lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
args: -E exportloopref,gofmt --timeout=30m

- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{ github.repository }}:$(date +%s)

0 comments on commit f5da79a

Please sign in to comment.