Skip to content

Commit

Permalink
Improve GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Sep 10, 2021
1 parent 34adafb commit b907b63
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,35 @@ jobs:
working-directory: ${{env.SRC_DIR}}
run: make all

Hadolint:
name: Hadolint
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Check dockerfiles with Hadolint
uses: essentialkaos/hadolint-action@v1
with:
files: Dockerfile

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 Docker image
run: |
docker build -f Dockerfile -t rsz .

0 comments on commit b907b63

Please sign in to comment.