Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.24 KiB
Newer Older
Alexis Mergez's avatar
Alexis Mergez committed
# Steps:
# - Getting apps
# - Running the dag
# - Publishing the release with the dag inside

Alexis Mergez's avatar
Alexis Mergez committed
shallow_run_workflow:
  stage: test
Alexis Mergez's avatar
Alexis Mergez committed
  tags: 
    - stable
Alexis Mergez's avatar
Alexis Mergez committed
  image: 
Alexis Mergez's avatar
Alexis Mergez committed
    name: kaczmarj/apptainer:latest
    entrypoint: [""]
  script:
Alexis Mergez's avatar
Alexis Mergez committed
    ## Downloading apps
Alexis Mergez's avatar
Alexis Mergez committed
    - mkdir appimgs
Alexis Mergez's avatar
Alexis Mergez committed
    #- apptainer build apps/pggb.sif oras://registry.forgemia.inra.fr/alexis.mergez/pangratools/pggb:latest
Alexis Mergez's avatar
Alexis Mergez committed
    - apptainer build appimgs/snakebox.sif oras://registry.forgemia.inra.fr/alexis.mergez/pangratools/snakebox:latest
Alexis Mergez's avatar
Alexis Mergez committed
    #- apptainer build apps/pytools.sif oras://registry.forgemia.inra.fr/alexis.mergez/pangetools/pytools:latest
    #- apptainer build apps/PanGeTools.sif oras://registry.forgemia.inra.fr/alexis.mergez/pangetools/pangetools:latest
Alexis Mergez's avatar
Alexis Mergez committed
    ## Running workflow
Alexis Mergez's avatar
Alexis Mergez committed
    - mkdir -p data/haplotypes
Alexis Mergez's avatar
Alexis Mergez committed
    - cp example/*.fa.gz data/haplotypes
Alexis Mergez's avatar
Alexis Mergez committed
    - HOME=$(pwd)
Alexis Mergez's avatar
Alexis Mergez committed
    - rm config.yaml && mv example/config_CICD.yaml config.yaml
    - apptainer run --bind $HOME:/root appimgs/snakebox.sif snakemake -c1 --dag > workflow.dot
Alexis Mergez's avatar
Alexis Mergez committed
  artifacts:
Alexis Mergez's avatar
Alexis Mergez committed
    paths:
Alexis Mergez's avatar
Alexis Mergez committed
      - workflow.dot
Alexis Mergez's avatar
Alexis Mergez committed
create_graph:
  stage: deploy
  image: ubuntu:latest
Alexis Mergez's avatar
Alexis Mergez committed
  tags: 
    - stable
Alexis Mergez's avatar
Alexis Mergez committed
  script:
Alexis Mergez's avatar
Alexis Mergez committed
    - apt update -y && apt install dot
    - dot -Tsvg workflow.dot > workflow.svg
Alexis Mergez's avatar
Alexis Mergez committed
  artifacts:
    paths:
      - workflow.svg