updated dockerfile to use slip docker image
All checks were successful
Build the portfolio website / build-and-release-image (push) Has been skipped
Build the portfolio website / build-portfolio-website (push) Successful in 1m0s

- updated dockerfile
- updated readme regarding image upload
This commit is contained in:
2025-06-22 09:53:48 +03:00
parent f980da7daf
commit 5c9d8de03d
3 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -1,5 +1,5 @@
# Step 1: Build the React app
FROM node:20 AS build
FROM node:24-slim AS build
WORKDIR /app

View File

@ -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.
container and deploy it to the cluster.