-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from projectdiscovery/feature-docker
adding docker
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# dockerhub-push pushes docker build to dockerhub automatically | ||
# on the creation of a new release | ||
name: Publish to Dockerhub on creation of a new release | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Publish to Dockerhub Registry | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: projectdiscovery/httpx | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM golang:1.14-alpine AS build-env | ||
|
||
RUN apk add --no-cache --upgrade git openssh-client ca-certificates | ||
RUN go get -u github.com/golang/dep/cmd/dep | ||
WORKDIR /go/src/app | ||
|
||
# Install | ||
RUN go get -u github.com/projectdiscovery/httpx/cmd/httpx | ||
|
||
ENTRYPOINT ["httpx"] |