Merge pull request #606 from hahwul/improve-dockerfile #1028
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 build | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- cmd/**/* | |
- pkg/**/* | |
- lib/**/* | |
- go.mod | |
- dalfox.go | |
- Dockerfile | |
pull_request: | |
branches: [ main ] | |
paths: | |
- cmd/**/* | |
- pkg/**/* | |
- lib/**/* | |
- go.mod | |
- dalfox.go | |
- Dockerfile | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag hahwul/dalfox:$(date +%s) |