|
@@ -44,8 +44,8 @@ jobs:
|
|
uses: docker/login-action@v1
|
|
uses: docker/login-action@v1
|
|
with:
|
|
with:
|
|
registry: ghcr.io
|
|
registry: ghcr.io
|
|
- username: ${{ github.actor }}
|
|
|
|
- password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
+ username: ${{ github.repository_owner }}
|
|
|
|
+ password: ${{ secrets.GPR_TOKEN }}
|
|
|
|
|
|
# prepare image tags
|
|
# prepare image tags
|
|
- name: Prepare Image Tags
|
|
- name: Prepare Image Tags
|
|
@@ -62,10 +62,8 @@ jobs:
|
|
with:
|
|
with:
|
|
context: .
|
|
context: .
|
|
file: ./dockerfiles/Dockerfile-for-frpc
|
|
file: ./dockerfiles/Dockerfile-for-frpc
|
|
- platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
|
|
|
|
- push: ${{ github.event_name != 'pull_request' }}
|
|
|
|
- cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
|
- cache-to: type=local,dest=/tmp/.buildx-cache,mode=max
|
|
|
|
|
|
+ platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
|
|
|
|
+ push: true
|
|
tags: |
|
|
tags: |
|
|
${{ env.TAG_FRPC }}
|
|
${{ env.TAG_FRPC }}
|
|
${{ env.TAG_FRPC_GPR }}
|
|
${{ env.TAG_FRPC_GPR }}
|
|
@@ -75,10 +73,8 @@ jobs:
|
|
with:
|
|
with:
|
|
context: .
|
|
context: .
|
|
file: ./dockerfiles/Dockerfile-for-frps
|
|
file: ./dockerfiles/Dockerfile-for-frps
|
|
- platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
|
|
|
|
- push: ${{ github.event_name != 'pull_request' }}
|
|
|
|
- cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
|
- cache-to: type=local,dest=/tmp/.buildx-cache,mode=max
|
|
|
|
|
|
+ platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
|
|
|
|
+ push: true
|
|
tags: |
|
|
tags: |
|
|
${{ env.TAG_FRPS }}
|
|
${{ env.TAG_FRPS }}
|
|
${{ env.TAG_FRPS_GPR }}
|
|
${{ env.TAG_FRPS_GPR }}
|