Skip to content
Snippets Groups Projects
Commit daca20f1 authored by Athanasios Karmas's avatar Athanasios Karmas
Browse files

Add new file

parent 672cc9be
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#
# https://docs.gitlab.com/13.12/ee/api/job_artifacts.html#get-job-artifacts
# https://stackoverflow.com/questions/53837426/gitlab-how-can-i-programatically-download-the-artifacts-issued-at-end-of-ci-pip
# url structure : GET /projects/:id/jobs/:job_id/artifacts
#
BUILD_ENV=$1
cat <<EOT >> simplejob.yml
apiVersion: batch/v1
kind: Job
metadata:
name: simplejob
spec:
parallelism: 1
completions: 1
template:
metadata:
name: testjob
spec:
containers:
- name: simplejob
image: docker-registry.ebrains.eu/tc/ebrains-spack-build-env:latest
volumeMounts:
- name: sharedbin
mountPath: /srv
command: ["/usr/local/bin/deploy-build-env.sh", "$BUILD_ENV"]
volumes:
- name: sharedbin
persistentVolumeClaim:
claimName: shared-binaries
restartPolicy: Never
EOT
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment