Skip to content

Commit

Permalink
Merge pull request #1 from testifysec/ci
Browse files Browse the repository at this point in the history
Add GitLab CI
  • Loading branch information
colek42 authored May 5, 2022
2 parents 2ad71bb + 82039d1 commit cf49a06
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 cf49a06

Please sign in to comment.