Skip to content

Commit

Permalink
Customise CD triggers
Browse files Browse the repository at this point in the history
- CD can be triggered manually, or automatically whenever a new tag is pushed
- Changes to configuration also trigger an automatic CD run

Re ECFLOW-1967
  • Loading branch information
marcosbento committed Nov 14, 2024
1 parent 317db58 commit d91bdaf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
name: cd

on:
push: ~

# Trigger the workflow manually
workflow_dispatch: ~

push:
# Trigger the workflow when new tags are pushed
tags:
- '**'
# Trigger the workflow when the CD workflow/configuration is updated
paths:
- .github/cd-*.yml
- .github/workflows/cd.yml

jobs:
deploy-server:
uses: ecmwf-actions/reusable-workflows/.github/workflows/create-package.yml@v2
Expand Down

0 comments on commit d91bdaf

Please sign in to comment.