Skip to content

Commit 210c683

Browse files
committed
Merge branch 'bugfix/dockerci' into 'main'
use buildkit See merge request flarenetwork/FSP/flare-system-c-chain-indexer!58
2 parents dde92c6 + 8cab041 commit 210c683

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.gitlab-ci.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ workflow:
1818
- if: $CI_COMMIT_TAG
1919
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
2020

21+
default:
22+
tags:
23+
- flarenetwork-md
24+
2125
build:
2226
stage: build
2327
image: golang:${GOLANG_VERSION}
@@ -57,19 +61,13 @@ test:
5761
build-container:
5862
stage: build
5963
needs: []
60-
image: gcr.si/cts/build-oci:1.3.0@sha256:af8fd5a7f8bf74037741f8a831209d66078d94251dd155df6d61b61a9f922bf7
61-
script: ["/build.sh"]
62-
variables:
63-
CTS_BUILD_CACHE_REPO: ${CI_REGISTRY_IMAGE}/cache
64-
CTS_BUILD_DOCKERFILE: Dockerfile
65-
rules:
66-
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
67-
variables:
68-
CTS_BUILD_TAG: latest
69-
- if: $CI_COMMIT_TAG != null
70-
variables:
71-
CTS_BUILD_TAG: $CI_COMMIT_TAG
72-
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != 'merge_request_event'
73-
74-
variables:
75-
CTS_BUILD_TAG: $CI_COMMIT_REF_SLUG
64+
image:
65+
name: registry.gitlab.com/flarenetwork/infra-public/pipeliner/kaniko-executor-stbl:v1.23.2-debug
66+
entrypoint: [""]
67+
script:
68+
- >-
69+
args="--context ${CI_PROJECT_DIR}/.
70+
--cache=true
71+
--registry-mirror mirror.gcr.io
72+
--destination ${CI_REGISTRY_IMAGE}:$CI_COMMIT_SHA"
73+
- /kaniko/executor $args

0 commit comments

Comments
 (0)