Skip to content

Commit

Permalink
runner redeployment bits
Browse files Browse the repository at this point in the history
  • Loading branch information
james-jdgtl committed Dec 9, 2024
1 parent d9a1e43 commit 214d039
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/scheduled_deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Pipeline

on:
schedule:
- cron: "30 */12 * * *" # Every 12 hours


workflow_dispatch:
inputs:
environment:
description: Environment
type: choice
required: true
options:
- development
- production
version:
description: Image version
type: string
required: true

jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
with:
push: true
secrets: inherit

# Only need to deploy to production nowadays
deploy_to_prod:
if : github.ref == 'refs/heads/main'
name: Deploy to prod
uses: ./.github/workflows/deploy.yml
needs:
- build
with:
environment: production
version: ${{ needs.build.outputs.version }}
secrets: inherit
permissions:
contents: write
deployments: write

0 comments on commit 214d039

Please sign in to comment.