-
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (32 loc) · 1.08 KB
/
Copy pathmanual_deploy.yml
File metadata and controls
37 lines (32 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Manual Deploy (Rollback)
on:
workflow_dispatch:
inputs:
version:
description: 'Image version to deploy (e.g., 1.9.0, 1.8.0, production)'
required: true
default: 'production'
env:
REGISTRY: ghcr.io
IMAGE_NAME: nielspilgaard/minimoeder-website
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Deploy via Dokploy
env:
DOKPLOY_API_KEY: ${{ secrets.DOKPLOY_API_KEY }}
DOKPLOY_URL: ${{ secrets.DOKPLOY_URL }}
DOKPLOY_APPLICATION_ID: ${{ secrets.DOKPLOY_APPLICATION_ID }}
IMAGE_TAG: ${{ inputs.version }}
run: node infrastructure/scripts/deploy.mjs
- name: Create Deployment on elmah.io
uses: elmahio/github-create-deployment-action@v1
with:
apiKey: ${{ secrets.ELMAH_IO_API_KEY }}
version: ${{ inputs.version }}
logId: ${{ secrets.ELMAH_IO_LOG_ID }}
userName: ${{ github.actor }}
description: "Manual deployment/rollback to version ${{ inputs.version }}"