build an image to serve the static, using caddy or nginx;
push the image to our repository
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Differents ways for deploying this website:
Ways to deploy
deploy using kubernetes
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:5000Configure drone or gitea action to build it
Add .drone.yaml or github/gitea workflow to: