|
|
@@ -763,6 +763,8 @@ jobs:
|
|
|
build-frp:
|
|
|
needs: build-basic
|
|
|
runs-on: ubuntu-latest
|
|
|
+ env:
|
|
|
+ VERSION: ${{ env.FRP_VERSION }}
|
|
|
steps:
|
|
|
- name: Set Variables
|
|
|
run: |
|
|
|
@@ -792,13 +794,17 @@ jobs:
|
|
|
- name: Build frps and push
|
|
|
id: docker_build_frps
|
|
|
uses: docker/build-push-action@v2
|
|
|
+ run: |
|
|
|
+ export FRP_VERSION=$(curl -fsSL https://api.github.com/repos/fatedier/frp/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')
|
|
|
+ env:
|
|
|
+ VERSION: ${{ env.FRP_VERSION }}
|
|
|
with:
|
|
|
context: ./frp
|
|
|
file: ./frp/Dockerfile.server
|
|
|
push: true
|
|
|
tags: |
|
|
|
${{ secrets.DOCKER_HUB_USERNAME }}/frp:latest
|
|
|
- ${{ secrets.DOCKER_HUB_USERNAME }}/frp:${{ env.FRP_VERSION }}-server
|
|
|
+ ${{ secrets.DOCKER_HUB_USERNAME }}/frp:${{ env.VERSION }}-server
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
cache-to: type=local,dest=/tmp/.buildx-cache-new
|