Skip to content

Commit 6e98ca0

Browse files
committed
fix workflows
1 parent 5fc96df commit 6e98ca0

2 files changed

Lines changed: 52 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
name: merge to main workflow
1+
name: release workflow
22
on:
3-
push:
4-
branches: [main]
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 18 * * 4"
56

67
jobs:
78
get_asdf_version:

0 commit comments

Comments
 (0)