From 5c9d8de03db87b51376e144a893748c7ef3b7c07 Mon Sep 17 00:00:00 2001 From: Taqi Tahmid Date: Sun, 22 Jun 2025 09:53:48 +0300 Subject: [PATCH] updated dockerfile to use slip docker image - updated dockerfile - updated readme regarding image upload --- .gitea/workflows/build.yaml | 2 +- Dockerfile | 2 +- README.md | 10 +++++++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 7374f39..c951091 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -64,4 +64,4 @@ jobs: context: . file: Dockerfile push: true - tags: ${{ secrets.DOCKER_REGISTRY }}/my-portfolio-app:latest + tags: ${{ secrets.DOCKER_REGISTRY }}/taqi/portfolio/my-portfolio-app:latest diff --git a/Dockerfile b/Dockerfile index b865509..986f53e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Step 1: Build the React app -FROM node:20 AS build +FROM node:24-slim AS build WORKDIR /app diff --git a/README.md b/README.md index 115150a..b5d0795 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -My Portfolio Website -===================== +# My Portfolio Website # Overview @@ -31,14 +30,19 @@ docker push $DOCKER_REGISTRY/my-portfolio-app:latest # Check the registry curl -u user:pass https://$DOCKER_REGISTRY/v2/_catalog + +# Or if using gitea registry +curl --netrc -X GET https://gitea.yourdomain.com/v2/_catalog ``` # CI/CD + Run in Gitea Actions within kubernetes cluster Current, the project has workflow files for: + - Build and push the container to the registry - Deploy the container to the Kubernetes cluster Thus making a commit to the master branch will automatically build the -container and deploy it to the cluster. \ No newline at end of file +container and deploy it to the cluster.