Skip to content

Commit

Permalink
run a deployment ever
Browse files Browse the repository at this point in the history
  • Loading branch information
james-jdgtl committed Dec 9, 2024
1 parent 214d039 commit a29a1aa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 86 deletions.
65 changes: 0 additions & 65 deletions .github/workflows/bootstrap-actions.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/new_renovate_pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: New PR created - Slack message if it's a renovate Dockerfile PR
name: New PR (actions/runner check)

on:
pull_request:
Expand All @@ -11,12 +11,12 @@ jobs:
contents: write
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Get PR details
id: get_pr_details
run: |
echo "::set-output name=title::$(jq -r .pull_request.title < $GITHUB_EVENT_PATH)"
echo "::set-output name=number::$(jq -r .pull_request.number < $GITHUB_EVENT_PATH)"
echo "title=$(jq -r .pull_request.title < $GITHUB_EVENT_PATH)" >> $GITHUB_OUTPUT
echo "number=$(jq -r .pull_request.number < $GITHUB_EVENT_PATH)" >> $GITHUB_OUTPUT
- name: Run action if PR title contains 'actions/runner'
if: contains(steps.get_pr_details.outputs.title, 'actions/runner')
uses: ./.github/actions/runner-slack-notification
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pipeline
name: Build -> Deploy pipeline

on:
push:
Expand Down
18 changes: 2 additions & 16 deletions .github/workflows/scheduled_deployment.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
name: Pipeline
name: Scheduled deployment

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

- cron: "10 16,04 * * *" # 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:
Expand All @@ -29,7 +16,6 @@ jobs:

# 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:
Expand Down

0 comments on commit a29a1aa

Please sign in to comment.