Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
cd-workload*
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit committed Sep 8, 2023
1 parent b24f056 commit c8c45a3
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/cd-workload1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: cd-workload1
on:
push:
branches:
- main
paths:
- 'score/workload1/**'
- '.github/workflows/cd-workload1.yaml'
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
SCORE_HUMANITEC_VERSION: latest
APP_NAME: sh-demo
WORKLOAD_NAME: workload1
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: score-spec/setup-score@v2
with:
file: score-humanitec
version: ${{ env.SCORE_HUMANITEC_VERSION }}
- name: Deploy using Score
run: |
score-humanitec delta \
--env development \
--app ${{ env.APP_NAME }} \
--org="${{ secrets.HUMANITEC_ORG_ID }}" \
--token "${{ secrets.HUMANITEC_TOKEN }}" \
--deploy
32 changes: 32 additions & 0 deletions .github/workflows/cd-workload2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: cd-workload2
on:
push:
branches:
- main
paths:
- 'score/workload2/**'
- '.github/workflows/cd-workload2.yaml'
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
SCORE_HUMANITEC_VERSION: latest
APP_NAME: sh-demo2
WORKLOAD_NAME: workload2
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: score-spec/setup-score@v2
with:
file: score-humanitec
version: ${{ env.SCORE_HUMANITEC_VERSION }}
- name: Deploy using Score
run: |
score-humanitec delta \
--env development \
--app ${{ env.APP_NAME }} \
--org="${{ secrets.HUMANITEC_ORG_ID }}" \
--token "${{ secrets.HUMANITEC_TOKEN }}" \
--deploy

0 comments on commit c8c45a3

Please sign in to comment.