mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 16:27:22 +00:00
chore: cross-platform docker build (#6198)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
6bd7d8bf9d
commit
31f6fcbcf8
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@ -460,6 +460,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
- name: Configure docker
|
||||||
|
uses: crazy-max/ghaction-setup-docker@v3
|
||||||
|
with:
|
||||||
|
daemon-config: |
|
||||||
|
{
|
||||||
|
"features": {
|
||||||
|
"containerd-snapshotter": true
|
||||||
|
}
|
||||||
|
}
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@ -488,6 +499,7 @@ jobs:
|
|||||||
run: node common/scripts/install-run-rush.js docker:build -v
|
run: node common/scripts/install-run-rush.js docker:build -v
|
||||||
env:
|
env:
|
||||||
DOCKER_CLI_HINTS: false
|
DOCKER_CLI_HINTS: false
|
||||||
|
DOCKER_EXTRA: --platform=linux/amd64,linux/arm64
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }}
|
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }}
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
Loading…
Reference in New Issue
Block a user