Skip to content

Commit fed4f02

Browse files
committed
🚧 Test Gitlab-CI
1 parent 00ec10c commit fed4f02

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
image:
2+
name: gcr.io/kaniko-project/executor:v1.9.0-debug
3+
entrypoint: [""]
4+
5+
stages:
6+
- build-and-push
7+
8+
build-and-push-job:
9+
stage: build-and-push
10+
script:
11+
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}"
12+
> /kaniko/.docker/config.json
13+
- /kaniko/executor --cache=true
14+
--context $CI_PROJECT_DIR
15+
--dockerfile $CI_PROJECT_DIR/Dockerfile
16+
--destination $CI_REGISTRY_IMAGE:${CI_COMMIT_SHA:0:8}
17+
--destination $CI_REGISTRY_IMAGE:temp
18+
timeout: 10h

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
2+
3+
##############################################################################
4+
# Temporary Installation Directory
5+
##############################################################################
6+
ENV STAGE_DIR=/tmp
7+
RUN mkdir -p ${STAGE_DIR}

0 commit comments

Comments
 (0)