@ -8,6 +8,26 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- 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
|
||||
id: meta-musl
|
||||
with:
|
||||
@ -29,6 +49,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
target: toolchain-musl
|
||||
tags: ${{ steps.meta-musl.outputs.tags }}
|
||||
labels: ${{ steps.meta-musl.outputs.labels }}
|
||||
@ -36,6 +57,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
target: toolchain
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
Reference in New Issue
Block a user