Skip to content

Commit

Permalink
fix: docker deploy script runs out of space on single runner (#8788)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaietta authored Jan 20, 2025
1 parent 0aa407c commit 8d6a600
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 30 deletions.
40 changes: 11 additions & 29 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,42 +24,24 @@ jobs:
name: Build and Push Docker
needs: run-docker-build-and-test
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
nodeMajorVersion: [
14, 16, 18, 20, 22
]
steps:
- name: Download images artifact - node14
uses: actions/download-artifact@v4
with:
name: electron-builder-all-14
path: ${{ runner.temp }}

- name: Download images artifact - node16
uses: actions/download-artifact@v4
with:
name: electron-builder-all-16
path: ${{ runner.temp }}

- name: Download images artifact - node18
uses: actions/download-artifact@v4
with:
name: electron-builder-all-18
path: ${{ runner.temp }}

- name: Download images artifact - node20
uses: actions/download-artifact@v4
with:
name: electron-builder-all-20
path: ${{ runner.temp }}

- name: Download images artifact - node22
- name: Download images artifact - node${{ matrix.nodeMajorVersion }}
uses: actions/download-artifact@v4
with:
name: electron-builder-all-22
name: electron-builder-all-${{ matrix.nodeMajorVersion }}
path: ${{ runner.temp }}

- name: Load all images
run: find ${{ runner.temp }} -type f -name "electron-builder-all-*.tar" -exec docker image load --input "{}" \;
run: docker image load --input ${{ runner.temp }}/electron-builder-all-${{ matrix.nodeMajorVersion }}.tar

- name: Tag LTS images for electron-builder latest/wine/wine-chrome/wine-mono
- name: Tag LTS (${{ env.LATEST_IMAGE_NODE_MAJOR_VERSION }}) images for electron-builder latest/wine/wine-chrome/wine-mono
if: ${{ matrix.nodeMajorVersion == env.LATEST_IMAGE_NODE_MAJOR_VERSION }}
run: |
docker image tag electronuserland/builder:${{ env.LATEST_IMAGE_NODE_MAJOR_VERSION }} electronuserland/builder:latest
docker image tag electronuserland/builder:${{ env.LATEST_IMAGE_NODE_MAJOR_VERSION }}-wine electronuserland/builder:wine
Expand Down
2 changes: 1 addition & 1 deletion docker/node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG IMAGE_VERSION=base
FROM --platform=linux/x86_64 electronuserland/builder:$IMAGE_VERSION

ARG NODE_VERSION=22.13.0
ARG NODE_VERSION

# this package is used for snapcraft and we should not clear apt list - to avoid apt-get update during snap build
RUN curl -L https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz | tar xz -C /usr/local --strip-components=1 && \
Expand Down

0 comments on commit 8d6a600

Please sign in to comment.