Merge pull request #262 from kpcyrd/update #113
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
build: | |
- name: sn0int | |
file: Dockerfile | |
- name: registry | |
file: sn0int-registry/Dockerfile | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the Docker image | |
run: DOCKER_BUILDKIT=1 docker build -t ${{ matrix.build.name }} -f ${{ matrix.build.file }} . | |
- name: Test the Docker image | |
run: docker run --rm ${{ matrix.build.name }} --help | |
- name: Show Docker images | |
run: docker images |