Newer
Older
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created
script:
- echo "running release_job"
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
- changes:
- PanGeTools.sif
- exists: # Run this job when a tag is created
- $CI_COMMIT_TAG
- apptainer push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" PanGeTools.sif oras://"$CI_REGISTRY_IMAGE"/"$CI_PROJECT_NAME":"$CI_COMMIT_TAG"
- apptainer push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" PanGeTools.sif oras://"$CI_REGISTRY_IMAGE"/"$CI_PROJECT_NAME":latest
build-and-push pytools:
stage: build
image:
name: kaczmarj/apptainer:latest
entrypoint: [""]
rules:
- changes:
- PyTools.sif
- exists:
- $CI_COMMIT_TAG # Run this job when a tag is created
- sed -i "s/VERSION_NUMBER/${CI_COMMIT_TAG#v}/" PyTools.def
- apptainer build PyTools.sif PyTools.def
- apptainer push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" PyTools.sif oras://"$CI_REGISTRY_IMAGE"/pytools:"$CI_COMMIT_TAG"
- apptainer push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" PyTools.sif oras://"$CI_REGISTRY_IMAGE"/pytools:latest