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!

ci(docker): add github action to build docker images automatically

Amruth Pillai1a0ab6fb22ba
diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml
new file mode 100644
index 000000000..fe40fa78f
--- /dev/null
+++ b/.github/workflows/docker-build-push.yml
@@ -0,0 +1,35 @@
+name: Build and Push to Docker Hub
+
+on:
+ push:
+ branches: v3
+
+jobs:
+ docker:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout the repository
+ uses: actions/[email protected]
+
+ - name: Login to Docker Hub
+ uses: docker/[email protected]
+ with:
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+
+ - name: Build and Push Server Docker Image
+ uses: docker/[email protected]
+ with:
+ context: .
+ push: true
+ file: {{context}}/server/Dockerfile
+ tags: amruthpillai/reactive-resume:server-latest
+
+ - name: Build and Push Client Docker Image
+ uses: docker/[email protected]
+ with:
+ context: .
+ push: true
+ file: {{context}}/client/Dockerfile
+ tags: amruthpillai/reactive-resume:client-latest