From 1148888c6a35acf92ccc5aa0d33df8c1b48b023c Mon Sep 17 00:00:00 2001 From: Mzack9999 Date: Thu, 4 Jun 2020 11:29:47 +0200 Subject: [PATCH] adding docker --- .github/workflows/dockerhub-push.yml | 17 +++++++++++++++++ Dockerfile | 10 ++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/dockerhub-push.yml create mode 100644 Dockerfile diff --git a/.github/workflows/dockerhub-push.yml b/.github/workflows/dockerhub-push.yml new file mode 100644 index 00000000..0a11974a --- /dev/null +++ b/.github/workflows/dockerhub-push.yml @@ -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 }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..34798ebf --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file