Skip to content

Commit 732c940

Browse files
authored
Merge pull request #47 from projectdiscovery/dev
v0.0.4 Release
2 parents 8b68f46 + 5ae0683 commit 732c940

18 files changed

+313
-210
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ updates:
1111
directory: "/"
1212
schedule:
1313
interval: "weekly"
14+
target-branch: "dev"
1415
commit-message:
1516
prefix: "chore"
1617
include: "scope"
@@ -20,6 +21,7 @@ updates:
2021
directory: "/"
2122
schedule:
2223
interval: "weekly"
24+
target-branch: "dev"
2325
commit-message:
2426
prefix: "chore"
2527
include: "scope"
@@ -29,6 +31,7 @@ updates:
2931
directory: "/"
3032
schedule:
3133
interval: "weekly"
34+
target-branch: "dev"
3235
commit-message:
3336
prefix: "chore"
34-
include: "scope"
37+
include: "scope"

.github/workflows/build-test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 🔨 Build Test
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
8+
jobs:
9+
build:
10+
name: Test Builds
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Set up Go
14+
uses: actions/setup-go@v2
15+
with:
16+
go-version: 1.15
17+
18+
- name: Check out code
19+
uses: actions/checkout@v2
20+
21+
- name: Test
22+
run: go test .
23+
working-directory: cmd/simplehttpserver/
24+
25+
- name: Build
26+
run: go build .
27+
working-directory: cmd/simplehttpserver/

.github/workflows/build.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/codeql-analysis.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 🚨 CodeQL Analysis
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- dev
8+
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language: [ 'go' ]
22+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v2
27+
28+
# Initializes the CodeQL tools for scanning.
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v1
31+
with:
32+
languages: ${{ matrix.language }}
33+
34+
- name: Autobuild
35+
uses: github/codeql-action/autobuild@v1
36+
37+
- name: Perform CodeQL Analysis
38+
uses: github/codeql-action/analyze@v1

.github/workflows/dockerhub-push.yml

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,34 @@
1-
# dockerhub-push pushes docker build to dockerhub automatically
2-
# on the creation of a new release
3-
name: Publish to Dockerhub on creation of a new release
4-
on:
1+
name: 🌥 Docker Push
2+
3+
on:
54
release:
65
types: [published]
6+
workflow_dispatch:
7+
78
jobs:
8-
build:
9+
docker:
910
runs-on: ubuntu-latest
1011
steps:
11-
- uses: actions/checkout@master
12-
- name: Publish to Dockerhub Registry
13-
uses: elgohr/Publish-Docker-Github-Action@master
14-
with:
15-
name: projectdiscovery/simplehttpserver
16-
username: ${{ secrets.DOCKER_USERNAME }}
17-
password: ${{ secrets.DOCKER_PASSWORD }}
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v2
15+
-
16+
name: Set up QEMU
17+
uses: docker/setup-qemu-action@v1
18+
-
19+
name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v1
21+
-
22+
name: Login to DockerHub
23+
uses: docker/login-action@v1
24+
with:
25+
username: ${{ secrets.DOCKER_USERNAME }}
26+
password: ${{ secrets.DOCKER_TOKEN }}
27+
-
28+
name: Build and push
29+
uses: docker/build-push-action@v2
30+
with:
31+
context: .
32+
platforms: linux/amd64,linux/arm64,linux/arm
33+
push: true
34+
tags: projectdiscovery/simplehttpserver:latest

.github/workflows/lint-test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 🙏🏻 Lint Test
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
lint:
9+
name: Lint Test
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
- name: Run golangci-lint
15+
uses: golangci/golangci-lint-action@v2
16+
with:
17+
version: latest
18+
args: --timeout 5m
19+
working-directory: .

.github/workflows/release.yml renamed to .github/workflows/release-binary.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
name: Release
1+
name: 🎉 Release Binary
22
on:
33
create:
44
tags:
55
- v*
6+
workflow_dispatch:
67

78
jobs:
89
release:
@@ -17,12 +18,13 @@ jobs:
1718
name: "Set up Go"
1819
uses: actions/setup-go@v2
1920
with:
20-
go-version: 1.14
21+
go-version: 1.16
2122
-
2223
env:
2324
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2425
name: "Create release on GitHub"
2526
uses: goreleaser/goreleaser-action@v2
2627
with:
2728
args: "release --rm-dist"
28-
version: latest
29+
version: latest
30+
workdir: .

.golangci.yml

Lines changed: 0 additions & 118 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.16-alpine as build-env
1+
FROM golang:1.16.6-alpine as build-env
22
RUN GO111MODULE=on go get -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver
33

44
FROM alpine:latest

0 commit comments

Comments
 (0)