Skip to content

Commit

Permalink
ci: move sync script to spackio
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentebolea committed Dec 6, 2024
1 parent e74f184 commit 0548102
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 67 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/sync.yml

This file was deleted.

56 changes: 50 additions & 6 deletions .gitlab/gitlab-ci-spack.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
# This file is used to define the GitLab CI/CD pipeline for the ADIOS2 project.
.common-sanitizer:
variables:
GITLAB_SITE: "UO CI (gitlab.spack.io)"
CI_BIN_DIR: "$CI_PROJECT_DIR/build"
default:
interruptible: true
tags:
- medium
- uo
- public
- x86_64
interruptible: true

# This file is used to define the GitLab CI/CD pipeline for the ADIOS2 project.
.common-sanitizer:
rules:
- if: '$CI_PIPELINE_SOURCE != "schedule"'
when: on_success
- when: never
variables:
GITLAB_SITE: "UO CI (gitlab.spack.io)"
CI_BIN_DIR: "$CI_PROJECT_DIR/build"

.common-build:
extends:
Expand Down Expand Up @@ -82,3 +88,41 @@ test:uo-sanitizer-ubsan:
image: ornladios/adios2:ci-fedora-ubsan
extends: [.common-test]
needs: [build:uo-sanitizer-ubsan]

deploy:sync-ornl:
environment: ornl
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: on_success
- when: never
image: ornladios/adios2:sync-20241206-b
script: >
.gitlab/config/SpackCIBridge.py
ornladios/ADIOS2
[email protected]:ecpcitest/adios2.git
https://code.ornl.gov/
ecpcitest/adios2
--prereq-check=format
--prereq-check=git_checks
--disable-status-post
dependencies: []
needs: []

deploy:sync-spack:
environment: spackio
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: on_success
- when: never
image: ornladios/adios2:sync-20241206-b
script: >
.gitlab/config/SpackCIBridge.py
ornladios/ADIOS2
[email protected]:adios2/adios2.git
https://gitlab.spack.io/
adios2/ADIOS2
--prereq-check=format
--prereq-check=git_checks
--status-context="Frank CI (sanitizers)"
dependencies: []
needs: []
6 changes: 6 additions & 0 deletions scripts/ci/images/sync.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from python:3.6.15

# run apt install without asking user
RUN DEBIAN_FRONTEND=noninteractive apt update && \
apt -y install --no-install-recommends ssh git && \
pip install python-dateutil PyGithub

0 comments on commit 0548102

Please sign in to comment.