Skip to content

Commit

Permalink
1719
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhao98 committed Dec 22, 2023
1 parent a85492e commit 6d4e5e3
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .gitea/workflows/00-sync2gh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Sync to GitHub

on:
push:
branches:
- main

jobs:
sync-to-github:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

- name: Push to GitHub # https://github.com/yanhao98/frp-http
run: |
git remote set-url origin https://${{ secrets.GH_TOKEN_YH98 }}@github.com/yanhao98/frp-http.git
git push origin main
2 changes: 1 addition & 1 deletion .gitea/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
tags: yanhao98/frp-http-server:latest
tags: ${{ secrets.DOCKERHUB_USERNAME }}/frp-http-server:latest
platforms: linux/amd64,linux/arm64
32 changes: 32 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Push Docker Image

on:
push:
branches:
- main

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and Push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/frp-http-server:latest
platforms: linux/amd64,linux/arm64
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ bash <(curl -s domain.com/client.sh) --local=127.0.0.1:80
- https://github.com/snowdreamtech/frp/blob/master/frps/amd64/Dockerfile
- [VBScript](https://www.w3school.com.cn/vbscript/index.asp)
- https://stackoverflow.com/questions/4888197/how-To-show-dos-output-when-using-vbscript-exec/4888791#4888791
- [Frps服务端一键配置脚本](https://github.com/MvsCode/frps-onekey)
- [frps-docker](https://github.com/cloverzrg/frps-docker/blob/master/Dockerfile)

```
rm /var/log/nginx/access.log /var/log/nginx/error.log
Expand Down

0 comments on commit 6d4e5e3

Please sign in to comment.