Cédric Krier pushed to branch branch/default at Tryton / Tryton Docker CI


Commits:
b3152ae1 by Cédric Krier at 2022-12-25T14:28:01+01:00
Add gitlab CI
- - - - -


2 changed files:

- + .gitlab-ci.yml
- − update.sh


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -0,0 +1,33 @@
+stages:
+  - build
+  - publish
+
+build:
+  stage: build
+  tags:
+    - container-registry-push
+  image:
+    name: gcr.io/kaniko-project/executor:debug
+    entrypoint: [""]
+  script:
+    - /kaniko/executor
+      --context "${CI_PROJECT_DIR}"
+      --dockerfile "${CI_PROJECT_DIR}/Dockerfile"
+      --destination "${CI_REGISTRY_IMAGE}/ci:${CI_COMMIT_SHA}"
+      --tar-path image.tar
+  artifacts:
+    paths:
+      - image.tar
+
+publish:
+  stage: publish
+  image:
+    name: gcr.io/go-containerregistry/crane:debug
+    entrypoint: [""]
+  needs:
+    - build
+  script:
+    - crane auth login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD} ${DOCKER_SERVER}
+    - crane push image.tar tryton/ci:latest
+  rules:
+    - if: $CI_COMMIT_BRANCH =~ /^branch\/.*/


=====================================
update.sh deleted
=====================================
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-docker build -q --rm --no-cache -t tryton/ci .
-docker push tryton/ci



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton-docker-ci/-/commit/b3152ae12ca704a467e1bc76ec14e10635bf80c4

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton-docker-ci/-/commit/b3152ae12ca704a467e1bc76ec14e10635bf80c4
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to