Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

parallelize ci workflow

Amruth Pillai984078db762d
diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml
index 8c67101d4..a4b0ba6f4 100644
--- a/.github/workflows/build-deploy.yml
+++ b/.github/workflows/build-deploy.yml
@@ -6,8 +6,8 @@ on:
types: [published]
jobs:
- build:
- name: Build
+ build-amd64:
+ name: Build (amd64)
runs-on: ubuntu-latest
strategy:
@@ -16,9 +16,6 @@ jobs:
image:
- client
- server
- platform:
- - linux/amd64
- - linux/arm64
steps:
- name: Checkout the repository
@@ -62,7 +59,67 @@ jobs:
with:
context: .
push: true
- platforms: ${{ matrix.platform }}
+ platforms: linux/amd64
+ file: ${{ matrix.image }}/Dockerfile
+ labels: ${{ steps.meta.outputs.labels }}
+ tags: ${{ steps.meta.outputs.tags }}
+ build-args: |
+ TURBO_TOKEN=${{ secrets.TURBO_TOKEN }}
+
+ build-arm64:
+ name: Build (arm64)
+ runs-on: ubuntu-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ image:
+ - client
+ - server
+
+ steps:
+ - name: Checkout the repository
+ uses: actions/[email protected]
+
+ - name: Retrieve version from package.json
+ id: version
+ uses: martinbeentjes/[email protected]
+
+ - name: Docker Metadaata
+ id: meta
+ uses: docker/[email protected]
+ with:
+ images: amruthpillai/reactive-resume
+ tags: |
+ type=raw,value=${{ matrix.image }}-latest
+ type=raw,value=${{ matrix.image }}-${{ steps.version.outputs.current-version }}
+
+ - name: Set up QEMU
+ uses: docker/[email protected]
+
+ - name: Set up Docker Buildx
+ uses: docker/[email protected]
+
+ - name: Login to Docker Hub
+ uses: docker/[email protected]
+ with:
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+
+ - name: Login to GitHub Container Registry
+ uses: docker/[email protected]
+ with:
+ registry: ghcr.io
+ username: $GITHUB_REPOSITORY_OWNER
+ password: ${{ secrets.GH_TOKEN }}
+
+ - name: Build and Push
+ id: build
+ uses: docker/[email protected]
+ with:
+ context: .
+ push: true
+ platforms: linux/arm64
file: ${{ matrix.image }}/Dockerfile
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
@@ -73,7 +130,7 @@ jobs:
name: Deploy
runs-on: ubuntu-latest
- needs: build
+ needs: build-amd64
steps:
- name: Install DigitalOcean CLI
diff --git a/package.json b/package.json
index 752c0270a..6ca50a871 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "reactive-resume",
- "version": "3.8.0",
+ "version": "3.8.1",
"private": true,
"scripts": {
"dev": "env-cmd --silent cross-var cross-env VERSION=$npm_package_version turbo run dev",