Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
github-gitlab-runner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
github-gitlab-runner
Commits
bfce71a4
Commit
bfce71a4
authored
2 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
e55d47f6
No related branches found
No related tags found
No related merge requests found
Pipeline
#50915
failed
2 years ago
Stage: pending
Stage: prepare
Stage: running
Stage: report
Pipeline: github-gitlab-runner
#50916
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+72
-0
72 additions, 0 deletions
.gitlab-ci.yml
with
72 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
72
−
0
View file @
bfce71a4
variables
:
GITHUB_REPOSITORY
:
http://github.com/eic/juggler
GITHUB_TOKEN
:
GITHUB_REF
:
refs/heads/main
stages
:
-
pending
-
prepare
-
running
-
report
.status
:
script
:
-
|
if [ -n "${GITHUB_SHA}" ] ; then
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${GITHUB_REPO_STATUS_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA}" \
-d '{"state":"'"${STATE}"'",
"target_url":"'"${CI_PIPELINE_URL}"'",
"description":"'"${DESCRIPTION} $(TZ=America/New_York date)"'",
"context":"eicweb/detector_benchmarks ('"$DETECTOR_CONFIG"')"
}' ;
fi
pending
:
stage
:
pending
extends
:
.status
variables
:
STATE
:
"
pending"
DESCRIPTION
:
"
Started..."
when
:
always
prepare
:
stage
:
prepare
script
:
-
git clone ${GITHUB_REPOSITORY} project
-
git -C project checkout ${GITHUB_REF}
-
rm -r project/.git
artifacts
:
paths
:
-
project
running
:
stage
:
running
trigger
:
include
:
-
artifact
:
project/.gitlab-ci.yml
job
:
prepare
strategy
:
depend
needs
:
-
artifacts
:
True
job
:
prepare
report:success
:
stage
:
report
extends
:
.status
variables
:
STATE
:
"
success"
DESCRIPTION
:
"
Succeeded!"
when
:
on_success
report:failure
:
stage
:
report
extends
:
.status
variables
:
STATE
:
"
failure"
DESCRIPTION
:
"
Failed!"
when
:
on_failure
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment