File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 66 CODECOV_TOKEN :
77 required : true
88
9+
10+
911jobs :
12+ get-db-image :
13+ runs-on : ubuntu-latest
14+ env :
15+ BRANCH_NAME : ${{ github.ref_type == 'tag' && 'master' || (github.head_ref || github.ref_name) }}
16+ outputs :
17+ branch : ${{ steps.clean.outputs.branch }}
18+ steps :
19+ - id : clean
20+ name : " Clean branch name"
21+ run : echo "branch=${BRANCH_NAME//\//-}" >> "$GITHUB_OUTPUT"
1022 test :
1123 runs-on : ubuntu-latest
24+ needs : get-db-image
1225 services :
1326 integration-db :
14- image : ghcr.io/diamondlightsource/pato-backend-db:${{ github.ref_type == 'tag' && 'master' || (github.head_ref || github.ref_name) }}
27+ image : ghcr.io/diamondlightsource/pato-backend-db:${{ needs.get-db-image.outputs.branch }}
1528 ports :
1629 - 3306:3306
1730 strategy :
You can’t perform that action at this time.
0 commit comments