Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
colek42 committed May 5, 2022
1 parent 2ad71bb commit 82039d1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
stages:
- build

build-and-push-server:
variables:
KO_DOCKER_REPO: registry.gitlab.com/testifysec/witness-platform/archivist/archivist
stage: build
image:
name: registry.gitlab.com/testifysec/docker-images/ko:0.9.3
entrypoint: [""]
script:
- ko auth login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
- ko publish --bare --tags=${CI_COMMIT_SHORT_SHA} ./cmd/archivist

build-and-push-client:
variables:
KO_DOCKER_REPO: registry.gitlab.com/testifysec/witness-platform/archivist/archivistctl
stage: build
image:
name: registry.gitlab.com/testifysec/docker-images/ko:0.9.3
entrypoint: [""]
script:
- ko auth login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
- ko publish --bare --tags ${CI_COMMIT_SHORT_SHA} ./cmd/archivistctl

0 comments on commit 82039d1

Please sign in to comment.