Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add caller to crucible release workflow #435

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/crucible-release-schedule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: crucible-release-schedule
on: # yamllint disable-line rule:truthy
schedule:
# Runs every 3 months (1st day of the quarter)
- cron: "0 0 1 */3 *"

jobs:
call-crucible-release-schedule:
uses: ./.github/workflows/crucible-release.yaml
with:
action: "push"
secrets:
PRIVATE_KEY__TAG_CRUCIBLE_RELEASE: ${{ secrets.PRIVATE_KEY__TAG_CRUCIBLE_RELEASE }}

# TO-DO: add a job to remove old tags (2years?)
rafaelfolco marked this conversation as resolved.
Show resolved Hide resolved

crucible-release-ci-complete:
runs-on: [ self-hosted, workflow-overhead ]
timeout-minutes: 10
needs: call-crucible-release-schedule
steps:
- name: complete
run: echo "crucible-release-schedule-complete"
8 changes: 1 addition & 7 deletions .github/workflows/crucible-release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
---
name: crucible-release
on: # yamllint disable-line rule:truthy
schedule:
# Runs every 3 months (1st day of the quarter)
- cron: "0 0 1 */3 *"
workflow_dispatch:
inputs:
dry_run:
Expand Down Expand Up @@ -35,7 +32,6 @@ on: # yamllint disable-line rule:truthy
required: false
type: boolean
description: Do NOT push/delete tag to/from the repositories
default: false
custom_tag:
required: false
type: string
Expand All @@ -44,13 +40,11 @@ on: # yamllint disable-line rule:truthy
action:
required: true
type: string
description: Action to perform with the custom-tag (push or delete)
default: 'push'
description: Action to perform (push or delete)
force_push:
required: false
type: boolean
description: FORCE push (override tag)
default: false
secrets:
PRIVATE_KEY__TAG_CRUCIBLE_RELEASE:
required: true
Expand Down
Loading