-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85de79d
commit f6e689a
Showing
9 changed files
with
93 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Update argocd_metadata | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
update: | ||
permissions: | ||
packages: read | ||
contents: read | ||
checks: read | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Main Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Get SHA - length 7 | ||
id: get_sha | ||
run: | | ||
echo "::set-output name=sha::$(echo ${GITHUB_SHA} | cut -c1-7)" | ||
- name: Wait for Backend Docker Image | ||
uses: lewagon/wait-on-check-action@v1.3.1 | ||
with: | ||
ref: ${{ github.ref }} | ||
check-name: Build Backend Docker Image | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Wait for Website Docker Image | ||
uses: lewagon/wait-on-check-action@v1.3.1 | ||
with: | ||
ref: ${{ github.ref }} | ||
check-name: Build Website Docker Image | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout External Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: 'pathoplexus/argocd_metadata' # Replace with the correct repository path | ||
token: ${{ secrets.ARGOCD_METADATA_PAT }} # Personal Access Token with appropriate permissions | ||
|
||
- 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 'Pathoplexus bot' | ||
git config --global user.email 'bot@pathoplexus.org' | ||
git add config.json | ||
git commit -m "Update config.json" | ||
git push |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
{{- define "pathoplexus.dockerTag" }} | ||
{{- $dockerTag := (eq (. | default "main") "main") | ternary "latest" . -}} | ||
{{- if .sha }} | ||
{{- printf "commit-%s" .sha }} | ||
{{- else }} | ||
{{- $dockerTag := (eq (.branch | default "main") "main") | ternary "latest" .branch -}} | ||
{{- regexReplaceAll "/" $dockerTag "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
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
2 changes: 1 addition & 1 deletion
2
kubernetes/preview/templates/pathoplexus-preprocessing-deployment.yaml
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