-
Notifications
You must be signed in to change notification settings - Fork 2
103 lines (103 loc) · 3.5 KB
/
update-argocd-metadata.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Update argocd_metadata
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ci-update-argocd-metadata
jobs:
update:
permissions:
packages: read
contents: read
checks: read
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- name: Checkout Main Repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Get SHA - length 7
id: get_sha
run: |
echo "sha=$(echo ${GITHUB_SHA} | cut -c1-7)" >> $GITHUB_OUTPUT
# Waits are identical to the e2e-k3d.yml workflow file
# Mirror changes to that file
- name: Wait for Prepro Dummy Docker Image
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
check-name: Preprocessing dummy docker image build
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2
- name: Wait for Config Processor Docker Image
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
check-name: Build config-processor Docker Image
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2
- name: Wait for Backend Docker Image
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
check-name: Build Backend Docker Image
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2
- name: Wait for Website Docker Image
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
check-name: Build Website Docker Image
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2
- name: Wait for Prepro Nextclade Docker Image
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
check-name: Build preprocessing-nextclade Docker Image
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2
- name: Wait for Ingest Docker Image
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
check-name: Build ingest Docker Image
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2
- name: Wait for Keycloakify Docker Image
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
check-name: Build keycloakify Docker Image
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2
- name: Wait for ENA Submission Docker Image
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
check-name: Build ena-submission Docker Image
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2
# End of wait block
- name: Checkout External Repository
uses: actions/checkout@v4
with:
repository: "loculus-project/argocd_metadata"
token: ${{ secrets.ARGOCD_METADATA_PAT }}
- name: Modify config.json
run: |
echo '{
"branch" : "main",
"number" : 999,
"head_short_sha_7": "${{ steps.get_sha.outputs.sha }}"
}' > config.json
- name: Commit and Push Changes
run: |
git config --global user.name 'Loculus bot'
git config --global user.email '[email protected]'
git add config.json
git commit -m "Update config.json"
git push --force