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!

Testing a new streamlined GitHub Actions workflow

Amruth Pillaibe700c762949
diff --git a/.github/workflows/docker-build-push-v2.yml b/.github/workflows/docker-build-push-v2.yml
new file mode 100644
index 000000000..3d07bad8d
--- /dev/null
+++ b/.github/workflows/docker-build-push-v2.yml
@@ -0,0 +1,61 @@
+name: Build and Push Docker Image
+
+on:
+ release:
+ types: [published]
+
+jobs:
+ build_matrix:
+ name: Build and Push Docker Images of Client and Server
+ runs-on: ubuntu-latest
+
+ env:
+ TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
+ TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+
+ strategy:
+ matrix:
+ arch: [amd64, arm64]
+ images: [client, server]
+
+ steps:
+ - name: Checkout the repository
+ uses: actions/[email protected]
+
+ - id: version
+ name: App Version
+ uses: martinbeentjes/[email protected]
+
+ - name: Set up QEMU
+ uses: docker/[email protected]
+ with:
+ platforms: ${{ matrix.arch }}
+
+ - id: buildx
+ 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 Docker Image
+ uses: docker/[email protected]
+ with:
+ context: .
+ push: true
+ file: ${{ matrix.image }}/Dockerfile
+ tags: |
+ amruthpillai/reactive-resume:${{ matrix.image }}-latest
+ amruthpillai/reactive-resume:${{ matrix.image }}-${{ steps.version.outputs.current-version }}
+ ghcr.io/amruthpillai/reactive-resume:${{ matrix.image }}-latest
+ ghcr.io/amruthpillai/reactive-resume:${{ matrix.image }}-${{ steps.version.outputs.current-version }}