-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (49 loc) · 1.67 KB
/
release.yml
File metadata and controls
50 lines (49 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: release workflow
on:
workflow_dispatch:
schedule:
- cron: "0 18 * * 4"
jobs:
get_asdf_version:
runs-on: ubuntu-22.04
outputs:
asdf_version: '${{ steps.asdf-version.outputs.version }}'
tag_format: '${{ steps.load-config.outputs.TAG_FORMAT }}'
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Get asdf version
id: asdf-version
run: >-
echo "version=$(awk '!/^#/ && NF {print $1; exit}'
.tool-versions.asdf)" >> "$GITHUB_OUTPUT"
- name: Load config value
id: load-config
run: |
TAG_FORMAT=$(yq '.TAG_FORMAT' .github/config/settings.yml)
echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
quality_checks:
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@8404cf6e3a61ac8de4d1644e175e288aa4965815
needs:
- get_asdf_version
with:
asdfVersion: '${{ needs.get_asdf_version.outputs.asdf_version }}'
secrets:
SONAR_TOKEN: '${{ secrets.SONAR_TOKEN }}'
tag_release:
needs: [quality_checks, get_asdf_version]
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@dac60c1e29babc62013e7bb9ade002cb381c4c49
with:
dry_run: false
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}
branch_name: main
tag_format: ${{ needs.get_asdf_version.outputs.tag_format }}
secrets: inherit
build_all_images:
needs:
- tag_release
uses: ./.github/workflows/build_all_images.yml
with:
docker_tag: '${{ needs.tag_release.outputs.version_tag }}'
tag_latest: true
NO_CACHE: true