Cédric Krier pushed to branch branch/default at Tryton / Tryton Docker sao Test
Commits:
97d59a9b by Cédric Krier at 2022-12-25T16:46:35+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}/sao-test:${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/sao-test:latest
+ rules:
+ - if: $CI_COMMIT_BRANCH =~ /^branch\/.*/
=====================================
update.sh deleted
=====================================
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-docker build -q --rm --no-cache -t tryton/sao-test .
-docker push tryton/sao-test
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton-docker-sao-test/-/commit/97d59a9bb0cca3084134875578320ab4f185101d
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton-docker-sao-test/-/commit/97d59a9bb0cca3084134875578320ab4f185101d
You're receiving this email because of your account on foss.heptapod.net.