This commit is contained in:
parent
136703f46d
commit
ba5c19b342
2 changed files with 7 additions and 9 deletions
|
|
@ -5,10 +5,10 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: koda-k8s
|
runs-on: koda
|
||||||
env:
|
env:
|
||||||
NAMESPACE: siwa-game-prd
|
NAMESPACE: clem-siwa-game-prd
|
||||||
REGISTRY: siwa-game
|
REGISTRY: clem-siwa-game
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -40,7 +40,6 @@ jobs:
|
||||||
| sed "s/namespace: servadmin/namespace: $NAMESPACE/" \
|
| sed "s/namespace: servadmin/namespace: $NAMESPACE/" \
|
||||||
| kubectl apply -f -
|
| kubectl apply -f -
|
||||||
|
|
||||||
|
|
||||||
- name: Deploy with Helm
|
- name: Deploy with Helm
|
||||||
run: |
|
run: |
|
||||||
helm upgrade --install hugo charts \
|
helm upgrade --install hugo charts \
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
FROM hugomods/hugo:latest AS builder
|
FROM hugomods/hugo:latest AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
COPY ./src /src
|
||||||
COPY . .
|
RUN hugo --minify
|
||||||
|
|
||||||
RUN cd src && hugo build
|
FROM hugomods/hugo:nginx
|
||||||
|
|
||||||
FROM nginx:alpine
|
COPY --from=builder /src/public /site
|
||||||
COPY --from=builder /app/src/public /usr/share/nginx/html
|
|
||||||
Loading…
Add table
Reference in a new issue