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