-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1004 Bytes
/
dev-deploy.yaml
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
38
39
name: "Dev Deploy"
on:
workflow_dispatch:
inputs:
TAG:
description: "Tag to Deploy"
type: string
required: true
default: "dev"
CLEANUP:
description: "Run Cleanup Steps"
type: boolean
required: true
default: true
jobs:
deploy:
name: "Deploy"
uses: ./.github/workflows/deploy.yaml
permissions:
contents: read
with:
GHCR_TAG: ${{ inputs.TAG }}
STACK_NAME: dev_django5-boiler
STACK_FILE: docker-compose-swarm.yaml
CONFIG_FILE: services/shane/django5-boiler/dev.env
secrets:
SERVICE_CONFIGS_KEY: ${{ secrets.SERVICE_CONFIGS_KEY }}
PORTAINER_URL: ${{ secrets.PORTAINER_URL }}
PORTAINER_TOKEN: ${{ secrets.PORTAINER_TOKEN }}
cleanup:
name: "Cleanup"
uses: ./.github/workflows/cleanup.yaml
needs: deploy
if: ${{ inputs.CLEANUP != '' && inputs.CLEANUP || true }}
secrets:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}