mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
feat: add multi-platform support for Docker builds
This commit is contained in:
6
.github/workflows/docker-crawlab.yml
vendored
6
.github/workflows/docker-crawlab.yml
vendored
@@ -121,6 +121,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./docker/base-image
|
context: ./docker/base-image
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ env.IMAGE_NAME_CRAWLAB_BASE }}:${{ needs.setup.outputs.version }}
|
tags: ${{ env.IMAGE_NAME_CRAWLAB_BASE }}:${{ needs.setup.outputs.version }}
|
||||||
- name: Set output
|
- name: Set output
|
||||||
@@ -186,6 +187,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ${{ env.IMAGE_PATH_CRAWLAB_BACKEND }}/Dockerfile
|
file: ${{ env.IMAGE_PATH_CRAWLAB_BACKEND }}/Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ env.IMAGE_NAME_CRAWLAB_BACKEND }}:${{ needs.setup.outputs.version }}
|
tags: ${{ env.IMAGE_NAME_CRAWLAB_BACKEND }}:${{ needs.setup.outputs.version }}
|
||||||
- name: Set output
|
- name: Set output
|
||||||
@@ -214,6 +216,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ${{ env.IMAGE_PATH_CRAWLAB_FRONTEND }}
|
context: ${{ env.IMAGE_PATH_CRAWLAB_FRONTEND }}
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ env.IMAGE_NAME_CRAWLAB_FRONTEND }}:${{ needs.setup.outputs.version }}
|
tags: ${{ env.IMAGE_NAME_CRAWLAB_FRONTEND }}:${{ needs.setup.outputs.version }}
|
||||||
- name: Set output
|
- name: Set output
|
||||||
@@ -255,6 +258,8 @@ jobs:
|
|||||||
NEW_IMAGE="${IMAGE_NAME}:"
|
NEW_IMAGE="${IMAGE_NAME}:"
|
||||||
sed -i "s|${OLD_IMAGE}|${NEW_IMAGE}|" Dockerfile
|
sed -i "s|${OLD_IMAGE}|${NEW_IMAGE}|" Dockerfile
|
||||||
done
|
done
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: Log in to GitHub Container Registry
|
- name: Log in to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -266,6 +271,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
build-args: |
|
build-args: |
|
||||||
CRAWLAB_TAG=${{ needs.setup.outputs.version }}
|
CRAWLAB_TAG=${{ needs.setup.outputs.version }}
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
Reference in New Issue
Block a user