-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
262 changed files
with
42,464 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,23 @@ | ||
version: 2 | ||
jobs: | ||
go-version-latest: | ||
docker: | ||
- image: cimg/go:1.17-node | ||
steps: | ||
- checkout | ||
- run: make | ||
- run: make alltest | ||
go-version-last: | ||
docker: | ||
- image: cimg/go:1.16-node | ||
steps: | ||
- checkout | ||
- run: make | ||
- run: make alltest | ||
|
||
workflows: | ||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- go-version-latest | ||
- go-version-last |
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,3 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [fatedier] |
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,77 @@ | ||
name: Bug report | ||
description: Report a bug to help us improve frp | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
- type: textarea | ||
id: bug-description | ||
attributes: | ||
label: Bug Description | ||
description: Tell us what issues you ran into | ||
placeholder: Include information about what you tried, what you expected to happen, and what actually happened. The more details, the better! | ||
validations: | ||
required: true | ||
- type: input | ||
id: frpc-version | ||
attributes: | ||
label: frpc Version | ||
description: Include the output of `frpc -v` | ||
validations: | ||
required: true | ||
- type: input | ||
id: frps-version | ||
attributes: | ||
label: frps Version | ||
description: Include the output of `frps -v` | ||
validations: | ||
required: true | ||
- type: input | ||
id: system-architecture | ||
attributes: | ||
label: System Architecture | ||
description: Include which architecture you used, such as `linux/amd64`, `windows/amd64` | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: config | ||
attributes: | ||
label: Configurations | ||
description: Include what configurrations you used and ran into this problem | ||
placeholder: Pay attention to hiding the token and password in your output | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: log | ||
attributes: | ||
label: Logs | ||
description: Prefer you providing releated error logs here | ||
placeholder: Pay attention to hiding your personal informations | ||
- type: textarea | ||
id: steps-to-reproduce | ||
attributes: | ||
label: Steps to reproduce | ||
description: How to reproduce it? It's important for us to find the bug | ||
value: | | ||
1. | ||
2. | ||
3. | ||
... | ||
- type: checkboxes | ||
id: area | ||
attributes: | ||
label: Affected area | ||
options: | ||
- label: "Docs" | ||
- label: "Installation" | ||
- label: "Performance and Scalability" | ||
- label: "Security" | ||
- label: "User Experience" | ||
- label: "Test and Release" | ||
- label: "Developer Infrastructure" | ||
- label: "Client Plugin" | ||
- label: "Server Plugin" | ||
- label: "Extensions" | ||
- label: "Others" |
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 @@ | ||
blank_issues_enabled: false |
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,36 @@ | ||
name: Feature Request | ||
description: Suggest an idea to improve frp | ||
title: "[Feature Request] " | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
This is only used to request new product features. | ||
- type: textarea | ||
id: feature-request | ||
attributes: | ||
label: Describe the feature request | ||
description: Tell us what's you want and why it should be added in frp. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: alternatives | ||
attributes: | ||
label: Describe alternatives you've considered | ||
- type: checkboxes | ||
id: area | ||
attributes: | ||
label: Affected area | ||
options: | ||
- label: "Docs" | ||
- label: "Installation" | ||
- label: "Performance and Scalability" | ||
- label: "Security" | ||
- label: "User Experience" | ||
- label: "Test and Release" | ||
- label: "Developer Infrastructure" | ||
- label: "Client Plugin" | ||
- label: "Server Plugin" | ||
- label: "Extensions" | ||
- label: "Others" |
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,117 @@ | ||
name: Build Image and Publish to Dockerhub & GPR | ||
|
||
on: | ||
release: | ||
types: [ created ] | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Image tag' | ||
required: true | ||
default: 'test' | ||
jobs: | ||
binary: | ||
name: Build Golang project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
|
||
- run: | | ||
# https://github.com/actions/setup-go/issues/107 | ||
cp -f `which go` /usr/bin/go | ||
- run: go version | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
run: make build | ||
|
||
- name: Archive artifacts for frpc | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: frpc | ||
path: bin/frpc | ||
|
||
- name: Archive artifacts for frps | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: frps | ||
path: bin/frps | ||
|
||
image: | ||
name: Build Image from Dockerfile and binaries | ||
runs-on: ubuntu-latest | ||
needs: binary | ||
steps: | ||
# environment | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '0' | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
# download binaries of frpc and frps | ||
- name: Download binary of frpc | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: frpc | ||
path: bin/frpc | ||
|
||
- name: Download binary of frps | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: frps | ||
path: bin/frps | ||
|
||
# get image tag name | ||
- name: Get Image Tag Name | ||
run: | | ||
if [ x${{ github.event.inputs.tag }} == x"" ]; then | ||
echo "TAG_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
else | ||
echo "TAG_NAME=${{ github.event.inputs.tag }}" >> $GITHUB_ENV | ||
fi | ||
# prepare image tags | ||
- name: Prepare Image Tags | ||
run: | | ||
echo "DOCKERFILE_FRPC_PATH=dockerfiles/Dockerfile-for-frpc" >> $GITHUB_ENV | ||
echo "DOCKERFILE_FRPS_PATH=dockerfiles/Dockerfile-for-frps" >> $GITHUB_ENV | ||
echo "TAG_FRPC=fatedier/frpc:${{ env.TAG_NAME }}" >> $GITHUB_ENV | ||
echo "TAG_FRPS=fatedier/frps:${{ env.TAG_NAME }}" >> $GITHUB_ENV | ||
echo "TAG_FRPC_GPR=ghcr.io/fatedier/frpc:${{ env.TAG_NAME }}" >> $GITHUB_ENV | ||
echo "TAG_FRPS_GPR=ghcr.io/fatedier/frps:${{ env.TAG_NAME }}" >> $GITHUB_ENV | ||
# build images | ||
- name: Build Images | ||
run: | | ||
# for Docker hub | ||
docker build --file ${{ env.DOCKERFILE_FRPC_PATH }} --tag ${{ env.TAG_FRPC }} . | ||
docker build --file ${{ env.DOCKERFILE_FRPS_PATH }} --tag ${{ env.TAG_FRPS }} . | ||
# for GPR | ||
docker build --file ${{ env.DOCKERFILE_FRPC_PATH }} --tag ${{ env.TAG_FRPC_GPR }} . | ||
docker build --file ${{ env.DOCKERFILE_FRPS_PATH }} --tag ${{ env.TAG_FRPS_GPR }} . | ||
# push to dockerhub | ||
- name: Publish to Dockerhub | ||
run: | | ||
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin | ||
docker push ${{ env.TAG_FRPC }} | ||
docker push ${{ env.TAG_FRPS }} | ||
# push to gpr | ||
- name: Publish to GPR | ||
run: | | ||
echo ${{ secrets.GPR_TOKEN }} | docker login ghcr.io --username ${{ github.repository_owner }} --password-stdin | ||
docker push ${{ env.TAG_FRPC_GPR }} | ||
docker push ${{ env.TAG_FRPS_GPR }} |
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,34 @@ | ||
name: goreleaser | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
|
||
- run: | | ||
# https://github.com/actions/setup-go/issues/107 | ||
cp -f `which go` /usr/bin/go | ||
- name: Make All | ||
run: | | ||
./package.sh | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
args: release --rm-dist --release-notes=./Release.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GPR_TOKEN }} |
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,26 @@ | ||
name: "Close stale issues" | ||
on: | ||
schedule: | ||
- cron: "20 0 * * *" | ||
workflow_dispatch: | ||
inputs: | ||
debug-only: | ||
description: 'In debug mod' | ||
required: false | ||
default: 'false' | ||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.' | ||
stale-pr-message: 'Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.' | ||
stale-issue-label: 'lifecycle/stale' | ||
exempt-issue-labels: 'bug,doc,enhancement,future,proposal,question,testing,todo,easy,help wanted,assigned' | ||
stale-pr-label: 'lifecycle/stale' | ||
exempt-pr-labels: 'bug,doc,enhancement,future,proposal,question,testing,todo,easy,help wanted,assigned' | ||
days-before-stale: 30 | ||
days-before-close: 7 | ||
debug-only: ${{ github.event.inputs.debug-only }} |
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,36 @@ | ||
# Compiled Object files, Static and Dynamic libs (Shared Objects) | ||
*.o | ||
*.a | ||
*.so | ||
|
||
# Folders | ||
_obj | ||
_test | ||
|
||
# Architecture specific extensions/prefixes | ||
*.[568vq] | ||
[568vq].out | ||
|
||
*.cgo1.go | ||
*.cgo2.c | ||
_cgo_defun.c | ||
_cgo_gotypes.go | ||
_cgo_export.* | ||
|
||
_testmain.go | ||
|
||
*.exe | ||
*.test | ||
*.prof | ||
|
||
# Self | ||
bin/ | ||
packages/ | ||
release/ | ||
test/bin/ | ||
vendor/ | ||
dist/ | ||
.idea/ | ||
|
||
# Cache | ||
*.swp |
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,19 @@ | ||
builds: | ||
- skip: true | ||
checksum: | ||
name_template: 'checksums.txt' | ||
release: | ||
# Same as for github | ||
# Note: it can only be one: either github, gitlab or gitea | ||
github: | ||
owner: fatedier | ||
name: frp | ||
|
||
draft: false | ||
|
||
# You can add extra pre-existing files to the release. | ||
# The filename on the release will be the last part of the path (base). If | ||
# another file with the same name exists, the latest one found will be used. | ||
# Defaults to empty. | ||
extra_files: | ||
- glob: ./release/packages/* |
Oops, something went wrong.