feat/ssl-certificate-check (#65)

Reviewed-on: graham/towerops-web#65
This commit is contained in:
Graham McIntire 2026-03-17 16:21:44 -05:00 committed by graham
parent 76b3dd6a93
commit 0f9ce9b711
2 changed files with 7 additions and 8 deletions

View file

@ -3,7 +3,7 @@ name: Production Deployment
on:
push:
branches:
- production
- main
env:
REGISTRY: git.mcintire.me
@ -287,7 +287,7 @@ jobs:
git config user.email "actions@git.mcintire.me"
git add k8s/deployment.yaml
git commit -m "chore: update production image to ${IMAGE_TAG} [skip ci]" || echo "No changes to commit"
git push origin production
git push origin HEAD:production
- name: Deployment summary
run: |

View file

@ -1,22 +1,20 @@
name: Deploy to Staging
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
env:
DOCKER_BUILDKIT: 1
DOCKER_TLS_CERTDIR: ""
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
deploy-staging:
name: Deploy to Dokku Staging
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-22.04
steps:
- name: Checkout code
@ -36,5 +34,6 @@ jobs:
ssh dokku@204.110.191.231 apps:unlock towerops || true
git remote add dokku dokku@204.110.191.231:towerops || true
git fetch dokku || true
git push dokku main:main --force
# Deploy the PR branch to staging
git push dokku HEAD:main --force