Deploy the website #1

Closed
opened 2024-01-23 09:38:43 +00:00 by julienfastre · 0 comments
Owner

Differents ways for deploying this website:

Ways to deploy

deploy using kubernetes

  1. drone or github / gitea actions:
  2. build the website as static, using hugo;
  3. build an image to serve the static, using caddy or nginx;
  4. push the image to our repository
  5. manually, we update the image tag on ansible repository

deploy using gitlab pages

We create a repository on gitlab and use the "gitlab page" feature to deploy and serve. We must unconfigure the current website and configure a new one. Maybe we should then remove this repository.

How-to

using kubernetes

Build a docker image locally

Prepare a Dockerfile which will serve the website locally.

The image should build on your laptop and you can run it, something like docker run --rm -p 127.0.0.1:5000:80 the_new_image, you should get the website on localhost:5000

Configure drone or gitea action to build it

Add .drone.yaml or github/gitea workflow to:

  • build the website using hugo;
  • build the image
  • push the image to the repository
Differents ways for deploying this website: # Ways to deploy ## deploy using kubernetes 1. drone or github / gitea actions: 1. build the website as static, using hugo; 2. build an image to serve the static, using caddy or nginx; 3. push the image to our repository 2. manually, we update the image tag on ansible repository ## deploy using gitlab pages We create a repository on gitlab and use the "gitlab page" feature to deploy and serve. We must unconfigure the current website and configure a new one. Maybe we should then remove this repository. # How-to ## using kubernetes ### Build a docker image locally Prepare a Dockerfile which will serve the website locally. The image should build on your laptop and you can run it, something like `docker run --rm -p 127.0.0.1:5000:80 the_new_image`, you should get the website on localhost:5000 ### Configure drone or gitea action to build it Add .drone.yaml or github/gitea workflow to: - build the website using hugo; - build the image - push the image to the repository
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: champs-libres/chill_hugoplate#1
No description provided.