refac
This commit is contained in:
1 parent
c8f2e09fdc
commit
132a29fd1c
1 file changed
+12
@@ -75,6 +75,17 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Prepare CI Dockerfile
|
||||||
|
run: |
|
||||||
|
awk '
|
||||||
|
/^FROM --platform=\$BUILDPLATFORM node:/ {
|
||||||
|
print
|
||||||
|
print "ENV NODE_OPTIONS=\"--max-old-space-size=12288\""
|
||||||
|
next
|
||||||
|
}
|
||||||
|
{ print }
|
||||||
|
' Dockerfile > "${RUNNER_TEMP}/Dockerfile"
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -115,6 +126,7 @@ jobs:
|
|||||||
id: build
|
id: build
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
file: ${{ runner.temp }}/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
platforms: ${{ matrix.platform.arch }}
|
platforms: ${{ matrix.platform.arch }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
Reference in new issue
Block a user