Debian Codegraph @

.gitlab-ci.yml

raw
1 # Copyright 2022 The Archivista Contributors
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 stages:
16 - build
17
18 build-and-push-server:
19 variables:
20 KO_DOCKER_REPO: registry.gitlab.com/testifysec/judge-platform/archivista/archivista
21 stage: build
22 image:
23 name: registry.gitlab.com/testifysec/docker-images/ko:0.11.2-go1.19.2
24 entrypoint: [""]
25 script:
26 - ko auth login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
27 - ko publish --bare --tags=${CI_COMMIT_SHORT_SHA} ./cmd/archivista
28
29 build-and-push-client:
30 variables:
31 KO_DOCKER_REPO: registry.gitlab.com/testifysec/judge-platform/archivista/archivistactl
32 stage: build
33 image:
34 name: registry.gitlab.com/testifysec/docker-images/ko:0.11.2-go1.19.2
35 entrypoint: [""]
36 script:
37 - ko auth login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
38 - ko publish --bare --tags ${CI_COMMIT_SHORT_SHA} ./cmd/archivistactl