-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9a1e43
commit 214d039
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|