-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (67 loc) · 2.11 KB
/
update-release.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Update release versions
on:
workflow_dispatch:
jobs:
suiteRunner:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
with:
repository: eiffel-community/etos-suite-runner
- name: Get version
id: getVersion
run: |
VERSION=$(gh release view --json tagName --jq .tagName)
echo "version=$VERSION" >> $GITHUB_OUTPUT
outputs:
version: ${{ steps.getVersion.outputs.version }}
suiteStarter:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
with:
repository: eiffel-community/etos-suite-starter
- name: Get version
id: getVersion
run: |
VERSION=$(gh release view --json tagName --jq .tagName)
echo "version=$VERSION" >> $GITHUB_OUTPUT
outputs:
version: ${{ steps.getVersion.outputs.version }}
api:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
with:
repository: eiffel-community/etos-api
- name: Get version
id: getVersion
run: |
VERSION=$(gh release view --json tagName --jq .tagName)
echo "version=$VERSION" >> $GITHUB_OUTPUT
outputs:
version: ${{ steps.getVersion.outputs.version }}
update_manifest:
runs-on: ubuntu-latest
needs: [suiteRunner, suiteStarter, api]
steps:
- uses: actions/checkout@v4
- name: Update manifests
uses: fjogeleit/yaml-update-action@main
with:
branch: main
commitChange: true
valueFile: manifests/release/kustomization.yaml
message: Updating release images
changes: |
{
"resources[0]": "github.com/eiffel-community/etos-suite-runner//manifests/base?ref=${{ needs.suiteRunner.outputs.version }}",
"resources[1]": "github.com/eiffel-community/etos-suite-starter//manifests/base?ref=${{ needs.suiteStarter.outputs.version }}",
"resources[2]": "github.com/eiffel-community/etos-api//manifests/base?ref=${{ needs.api.outputs.version }}"
}