This commit is contained in:
Alexis Bruneteau 2025-05-31 16:51:52 +02:00
parent 6f76ba2f6e
commit fe14d9f790

View File

@ -61,22 +61,9 @@ jobs:
exit 1
fi
- name: Create ConfigMap for app files
run: |
kubectl create configmap hosting-frontend-files \
--from-file=dist/hosting-frontend/browser \
--namespace=hosting-frontend \
--dry-run=client -o yaml | kubectl apply -f -
- name: Create ConfigMap for nginx config
run: |
kubectl create configmap nginx-config \
--from-file=nginx.conf \
--namespace=hosting-frontend \
--dry-run=client -o yaml | kubectl apply -f -
- name: Deploy to k3s
run: |
kubectl apply -f k8s/
kubectl apply -f deploy/k8s/
kubectl set image deployment/hosting-frontend hosting-frontend=${{ secrets.REGISTRY_URL }}/hosting-frontend:${{ github.sha }} -n hosting-frontend
kubectl rollout status deployment/hosting-frontend -n hosting-frontend
kubectl rollout status deployment/hosting-frontend -n hosting