Skip to content

Commit

Permalink
Merge pull request #307 from alercebroker/refactor/lightcurve_ci_cd
Browse files Browse the repository at this point in the history
refactor of cd workflow
  • Loading branch information
AlxEnashi authored Aug 21, 2024
2 parents df66ec2 + 23f78dc commit b91cd74
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/cd-astroobject.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
uses: ./.github/workflows/cd-template.yml
with:
packages: 'astroobject' # comma separated list of packages
event: ${{ github.event_name }}
secrets:
ADMIN_TOKEN: '${{ secrets.ADMIN_TOKEN }}'
AWS_ROLE_STAGING: '${{ secrets.AWS_ROLE_STAGING }}'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cd-lightcurve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
uses: ./.github/workflows/cd-template.yml
with:
packages: 'lightcurve' # comma separated list of packages
event: ${{ github.event_name }}
secrets:
ADMIN_TOKEN: '${{ secrets.ADMIN_TOKEN }}'
AWS_ROLE_STAGING: '${{ secrets.AWS_ROLE_STAGING }}'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cd-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
packages:
required: true
type: string
event:
required: true
type: string
secrets:
ADMIN_TOKEN:
required: true
Expand Down Expand Up @@ -160,6 +163,7 @@ jobs:
CR_TOKEN: "${{ secrets.ADMIN_TOKEN }}"

deploy-production:
if: inputs.event == 'ReleaseEvent'
needs: release-chart
runs-on: ubuntu-latest
permissions:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cd-xmatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
uses: ./.github/workflows/cd-template.yml
with:
packages: 'xmatch-service' # comma separated list of packages
event: ${{ github.event_name }}
secrets:
ADMIN_TOKEN: '${{ secrets.ADMIN_TOKEN }}'
AWS_ROLE_STAGING: '${{ secrets.AWS_ROLE_STAGING }}'
Expand Down
3 changes: 2 additions & 1 deletion lightcurve/trigger
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
File to manually trigger deployment while testing CD.
File to manually trigger deployment while testing CD.
run

0 comments on commit b91cd74

Please sign in to comment.