@ -8,6 +8,26 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup SSH for Buildx amd64
|
||||||
|
uses: MrSquaare/ssh-setup-action@v3
|
||||||
|
with:
|
||||||
|
host: 10.0.0.101
|
||||||
|
private-key: ${{ secrets.RUNNER_SSH_PRIVATE_KEY }}
|
||||||
|
- name: Setup SSH for Buildx arm64
|
||||||
|
uses: MrSquaare/ssh-setup-action@v3
|
||||||
|
with:
|
||||||
|
host: 10.0.0.102
|
||||||
|
private-key: ${{ secrets.RUNNER_SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
append: |
|
||||||
|
- endpoint: ssh://root@10.0.0.102
|
||||||
|
platforms: linux/arm64
|
||||||
|
endpoint: ssh://root@10.0.0.101
|
||||||
|
|
||||||
- uses: docker/metadata-action@v5
|
- uses: docker/metadata-action@v5
|
||||||
id: meta-musl
|
id: meta-musl
|
||||||
with:
|
with:
|
||||||
@ -29,6 +49,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
target: toolchain-musl
|
target: toolchain-musl
|
||||||
tags: ${{ steps.meta-musl.outputs.tags }}
|
tags: ${{ steps.meta-musl.outputs.tags }}
|
||||||
labels: ${{ steps.meta-musl.outputs.labels }}
|
labels: ${{ steps.meta-musl.outputs.labels }}
|
||||||
@ -36,6 +57,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
target: toolchain
|
target: toolchain
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
Reference in New Issue
Block a user