File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : merge to main workflow
2+ on :
3+ push :
4+ branches : [main]
5+
6+ jobs :
7+ get_asdf_version :
8+ runs-on : ubuntu-22.04
9+ outputs :
10+ asdf_version : ' ${{ steps.asdf-version.outputs.version }}'
11+ tag_format : ' ${{ steps.load-config.outputs.TAG_FORMAT }}'
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
15+ - name : Get asdf version
16+ id : asdf-version
17+ run : >-
18+ echo "version=$(awk '!/^#/ && NF {print $1; exit}'
19+ .tool-versions.asdf)" >> "$GITHUB_OUTPUT"
20+ - name : Load config value
21+ id : load-config
22+ run : |
23+ TAG_FORMAT=$(yq '.TAG_FORMAT' .github/config/settings.yml)
24+ echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
25+ quality_checks :
26+ uses : NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@5ccebbf821beef2de6abdce9e392b3cbeb4999e3
27+ needs :
28+ - get_asdf_version
29+ with :
30+ asdfVersion : ' ${{ needs.get_asdf_version.outputs.asdf_version }}'
31+ secrets :
32+ SONAR_TOKEN : ' ${{ secrets.SONAR_TOKEN }}'
33+ tag_release :
34+ needs : [quality_checks, get_asdf_version]
35+ uses : NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@e31e25273fb87450be4ef763ddbed4f531c45f8e
36+ with :
37+ dry_run : false
38+ asdfVersion : ${{ needs.get_asdf_version.outputs.asdf_version }}
39+ branch_name : main
40+ tag_format : ${{ needs.get_asdf_version.outputs.tag_format }}
41+ secrets : inherit
42+ build_all_images :
43+ needs : tag_release
44+ uses : ./.github/workflows/build_all_images.yml
45+ with :
46+ docker_tag : ' ${{ needs.tag_release.outputs.version_tag }}'
47+ tag_latest : false
48+ push_image : false
Original file line number Diff line number Diff line change 1- name : merge to main workflow
1+ name : release workflow
22on :
3- push :
4- branches : [main]
3+ workflow_dispatch :
4+ schedule :
5+ - cron : " 0 18 * * 4"
56
67jobs :
78 get_asdf_version :
You can’t perform that action at this time.
0 commit comments