Skip to content
Snippets Groups Projects
Commit 0e353567 authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

switch off a secrets file to using multiple hidden CI variables. Change name...

switch off a secrets file to using multiple hidden CI variables. Change name of image to match repo. Condense clone and prep_missing_tags jobs
parent 44bd33bf
No related branches found
No related tags found
1 merge request!7Build each independent tag in main alphafold3 repo
stages: stages:
- clone - prep_tags
- find_tags
- build - build
variables: variables:
GITHUB_URL: "github.com/google-deepmind/alphafold3.git" GITHUB_URL: "github.com/google-deepmind/alphafold3.git"
REGISTRY_URL: "${CI_REGISTRY_IMAGE}" REGISTRY_URL: "${CI_REGISTRY_IMAGE}"
IMAGE_NAME: "alphafold" IMAGE_NAME: "alphafold3"
REPO_URL: "https://gitlab.rc.uab.edu/api/v4/projects/${CI_PROJECT_ID}/registry/repositories/" REPO_URL: "https://gitlab.rc.uab.edu/api/v4/projects/${CI_PROJECT_ID}/registry/repositories/"
DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_CERTDIR: "/certs"
clone_repo: workflow:
image: alpine:latest rules:
stage: clone - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Only run on main
script:
- apk update && apk add curl bash git
- curl -s "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
- source .secure_files/github-key
- git clone https://${GITHUB_USER}:${GITHUB_TOKEN}@${GITHUB_URL}
artifacts:
paths:
- alphafold3/
expire_in: 1 hour
prep_missing_tags: prep_missing_tags:
image: ubuntu:latest image: ubuntu:latest
stage: find_tags stage: prep_tags
script: script:
- apt-get update && apt-get install -y curl git jq - apt-get update && apt-get install -y curl git jq
- git clone https://${CI_GITHUB_USER}:${CI_GITHUB_TOKEN}@${GITHUB_URL}
- cd alphafold3 - cd alphafold3
- git fetch --tags - git fetch --tags
- 'REPO_ID=$(curl -s --header "PRIVATE-TOKEN: ${CI_PROJECT_ACCESS_TOKEN}" "${REPO_URL}" | jq ".[0].id")' - 'REPO_ID=$(curl -s --header "PRIVATE-TOKEN: ${CI_PROJECT_ACCESS_TOKEN}" "${REPO_URL}" | jq ".[0].id")'
...@@ -40,6 +31,7 @@ prep_missing_tags: ...@@ -40,6 +31,7 @@ prep_missing_tags:
- sed -e "s/REPLACE_HERE/${MISSING}/g" template-build-tags.yml > build-tags.yml - sed -e "s/REPLACE_HERE/${MISSING}/g" template-build-tags.yml > build-tags.yml
artifacts: artifacts:
paths: paths:
- alphafold3/
- build-tags.yml - build-tags.yml
expire_in: 1 hour expire_in: 1 hour
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment