Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
feat: add test, and circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredallard committed Feb 16, 2020
1 parent d3de141 commit 9d4af00
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .circleci/circle.jsonnet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local circle = import 'circle.libsonnet';

{
circle.ServiceConfig('tritonmedia.go') {
jobs+: {
tests: circle.Job(dockerImage='circleci/golang:1.13', withDocker=false) {
steps_+:: [
Expand All @@ -13,7 +13,7 @@ local circle = import 'circle.libsonnet';
},
},
workflows+: {
['tests']+: {
['build-push']+: {
jobs_:: [
'tests',
],
Expand Down
22 changes: 21 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
jobs:
build:
docker:
- image: docker:19.03.6
steps:
- checkout
- setup_remote_docker:
version: 18.09.3
- run:
command: DOCKER_BUILDKIT=1 docker build --progress=plain -t tritonmedia/tritonmedia.go
-f Dockerfile .
name: Build "tritonmedia/tritonmedia.go" Docker Image
- run:
command: echo "$DOCKER_PASSWORD" | docker login --username "${DOCKER_USERNAME}"
--password-stdin && docker push tritonmedia/tritonmedia.go
name: Publish "tritonmedia/tritonmedia.go" Docker Image
tests:
docker:
- image: circleci/golang:1.13
Expand All @@ -16,5 +31,10 @@ jobs:
key: go-deps-{{ checksum "go.sum" }}
paths:
- /go/pkg/mod
version: 2
workflows:
tests: {}
build-push:
jobs:
- tests:
context: Docker
version: 2

0 comments on commit 9d4af00

Please sign in to comment.