Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c9b076316 | |||
| 25c44755b9 | |||
| 3e2792931b | |||
| 28990c2a4c | |||
| c8d0c3838f | |||
| 2bba4bc441 |
@@ -63,7 +63,7 @@ jobs:
|
|||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Commit & Push Changes
|
- name: Commit & Push Changes
|
||||||
if: always()
|
if: gitea.ref == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
if [ -n "$(git status --porcelain)" ]; then
|
if [ -n "$(git status --porcelain)" ]; then
|
||||||
git config --global user.name "gitea-actions"
|
git config --global user.name "gitea-actions"
|
||||||
@@ -77,7 +77,7 @@ jobs:
|
|||||||
|
|
||||||
build-and-push:
|
build-and-push:
|
||||||
needs: release
|
needs: release
|
||||||
# if: gitea.ref == 'refs/heads/main'
|
if: gitea.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -112,11 +112,3 @@ jobs:
|
|||||||
git.demonkernel.io.vn/${{ steps.meta.outputs.repo }}:latest
|
git.demonkernel.io.vn/${{ steps.meta.outputs.repo }}:latest
|
||||||
git.demonkernel.io.vn/${{ steps.meta.outputs.repo }}:${{ steps.meta.outputs.version }}
|
git.demonkernel.io.vn/${{ steps.meta.outputs.repo }}:${{ steps.meta.outputs.version }}
|
||||||
|
|
||||||
deploy-via-portainer:
|
|
||||||
if: gitea.ref == 'refs/heads/main'
|
|
||||||
needs: build-and-push
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Trigger Portainer Webhook
|
|
||||||
run: |
|
|
||||||
curl -X POST "${{ secrets.PORTAINER_WEBHOOK_URL }}"
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: drinkool_frontend
|
name: drinkool-frontend
|
||||||
labels:
|
labels:
|
||||||
app: web
|
app: web
|
||||||
spec:
|
spec:
|
||||||
@@ -14,11 +14,11 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: web
|
app: web
|
||||||
spec:
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: gitea-registry-secret
|
||||||
containers:
|
containers:
|
||||||
- name: nginx-container
|
- name: frontend-container
|
||||||
image: nginx:latest
|
image: git.demonkernel.io.vn/foodsurf/frontend:latest
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: "50m"
|
cpu: "50m"
|
||||||
Reference in New Issue
Block a user