FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Test the image on a system with a GPU as well. · Dhusanth/docker-python@fdbf391 · GitHub

Commit fdbf391

Browse files
Seb Boving
committed
Test the image on a system with a GPU as well.
1 parent bb3b9cd commit fdbf391

1 file changed

Lines changed: 24 additions & 3 deletions

File tree

‎Jenkinsfile‎

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
String cron_string = BRANCH_NAME == "ci" ? "H 12 * * 1-5" : ""
22

33
pipeline {
4-
agent { label 'linux' }
4+
agent { label 'linux && !gpu' }
55
options {
66
disableConcurrentBuilds()
77
}
@@ -35,11 +35,32 @@ pipeline {
3535
}
3636
}
3737

38-
stage('Push Image') {
38+
stage('Push Temporary Image') {
39+
steps {
40+
slackSend color: 'none', message: "*<${env.BUILD_URL}console|pushing temporary image>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL
41+
sh '''#!/bin/bash
42+
./push gpu-test
43+
'''
44+
}
45+
}
46+
47+
stage('Test Image on GPU') {
48+
agent { label 'linux && gpu' }
49+
steps {
50+
slackSend color: 'none', message: "*<${env.BUILD_URL}console|testing image on GPU>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL
51+
sh '''#!/bin/bash
52+
gcloud docker -- pull gcr.io/kaggle-private-byod/python:gpu-test
53+
docker tag gcr.io/kaggle-private-byod/python:gpu-test kaggle/python-build:latest
54+
./test
55+
'''
56+
}
57+
}
58+
59+
stage('Push Final Image') {
3960
steps {
4061
slackSend color: 'none', message: "*<${env.BUILD_URL}console|pushing image>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL
4162
sh '''#!/bin/bash
42-
./push
63+
./push staging
4364
'''
4465
}
4566
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL