feat(ena-submission): Create insdc submission service (#2186) #836
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 15 | |
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 | |
# 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 |