This commit is contained in:
parent
136703f46d
commit
c9ccf3f259
3 changed files with 32 additions and 11 deletions
|
|
@ -5,13 +5,17 @@ on:
|
|||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: koda-k8s
|
||||
runs-on: koda
|
||||
env:
|
||||
NAMESPACE: siwa-game-prd
|
||||
REGISTRY: siwa-game
|
||||
NAMESPACE: clem-siwa-game-prd
|
||||
REGISTRY: clem-siwa-game
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- run: |
|
||||
apt-get update && apt-get install -y git-lfs
|
||||
git lfs install
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: true
|
||||
|
||||
- name: Helm lint charts
|
||||
run: |
|
||||
|
|
@ -40,7 +44,6 @@ jobs:
|
|||
| sed "s/namespace: servadmin/namespace: $NAMESPACE/" \
|
||||
| kubectl apply -f -
|
||||
|
||||
|
||||
- name: Deploy with Helm
|
||||
run: |
|
||||
helm upgrade --install hugo charts \
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
FROM hugomods/hugo:latest AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
COPY ./src /src
|
||||
RUN hugo build
|
||||
|
||||
RUN cd src && hugo build
|
||||
FROM hugomods/hugo:nginx
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY --from=builder /app/src/public /usr/share/nginx/html
|
||||
COPY --from=builder /src/public /site
|
||||
19
docker-compose.yml
Normal file
19
docker-compose.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
version: "3.7"
|
||||
|
||||
services:
|
||||
clem-website:
|
||||
build: .
|
||||
restart: always
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.docker.network=web
|
||||
- traefik.http.routers.website_siwa.rule=Host(`siwa.deadpool.srv.obicorp.fr`)
|
||||
- traefik.http.services.website_siwa.loadbalancer.server.port=80
|
||||
- traefik.http.routers.website_siwa.entrypoints=websecure
|
||||
- traefik.http.routers.website_siwa.tls=true
|
||||
- traefik.http.routers.website_siwa.tls.certresolver=myresolver
|
||||
networks:
|
||||
- web
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
Loading…
Add table
Reference in a new issue