Commit 30768154 authored by Pål Karlsrud's avatar Pål Karlsrud
Browse files

Add the initial .gitlab-ci config.

parent 36da8fae
image: golang:1.9
variables:
REPO_NAME: scm.uninett.no/daas/jwt-tokenissuer
stages:
- build
- deploy
- docker-latest
- docker-stable
build-project:
stage: build
script:
- go version
- echo $CI_PROJECT_DIR
- curl https://glide.sh/get | sh
- mkdir -p $GOPATH/src/$REPO_NAME
- mv $CI_PROJECT_DIR/* $GOPATH/src/$REPO_NAME
- cd $GOPATH/src/$REPO_NAME
- glide install
- make -B test
- make
- mv $GOPATH/src/$REPO_NAME/* $CI_PROJECT_DIR
- cp $CI_PROJECT_DIR/dist/linux-amd64/jwt-tokenissuer $CI_PROJECT_DIR/
artifacts:
paths:
- dist
- jwt-tokenissuer
docker-latest:
stage: deploy
image: registry.uninett.no/system/docker-builder:1.13.1-uninett8
script:
- docker build -t "registry.uninett.no/daas/jwt-tokenissuer:latest" .
- docker push "registry.uninett.no/daas/jwt-tokenissuer:latest"
only:
- master
docker-stable:
stage: deploy
image: registry.uninett.no/system/docker-builder:1.13.1-uninett8
script:
- docker build -t "registry.uninett.no/daas/jwt-tokenissuer:$CI_BUILD_REF_NAME" .
- docker push "registry.uninett.no/daas/jwt-tokenissuer:$CI_BUILD_REF_NAME"
only:
- tags
hash: fbcc70bf29d6df51236f1ecd69b24562437431708eda5bb737ea503fd7927b9b
updated: 2017-05-02T21:03:50.032099986+02:00
hash: 6a92aaaf8172dd08bfcda7f751c44c6b5c732ddf8f172b3ae2e7ff850d8f8134
updated: 2018-10-03T18:01:21.852219367+02:00
imports:
- name: github.com/davecgh/go-spew
version: 04cdfd42973bb9c8589fd6a731800cf222fde1a9
subpackages:
- spew
- name: github.com/fsnotify/fsnotify
version: 4da3e2cfbabc9f751898f250b49f2439785783a1
- name: github.com/hashicorp/hcl
......@@ -68,10 +72,6 @@ imports:
- name: scm.uninett.no/laas/laasctl-auth
version: 62381836011426500170e6cc7c2fb462bfaad500
testImports:
- name: github.com/davecgh/go-spew
version: 04cdfd42973bb9c8589fd6a731800cf222fde1a9
subpackages:
- spew
- name: github.com/pmezard/go-difflib
version: d8ed2627bdf02c080bf22230dbb337003b7aba2d
subpackages:
......
package: github.com/uninett/jwt-tokenissuer
package: scm.uninett.no/daas/jwt-tokenissuer
import:
- package: github.com/Sirupsen/logrus
version: ^0.11.4
......
......@@ -15,7 +15,7 @@ import (
"github.com/SermoDigital/jose/crypto"
"github.com/SermoDigital/jose/jws"
log "github.com/Sirupsen/logrus"
"github.com/uninett/jwt-tokenissuer/conf"
"scm.uninett.no/daas/jwt-tokenissuer/conf"
)
type JWTMiddleware struct {
......
......@@ -13,7 +13,7 @@ import (
"github.com/SermoDigital/jose/jws"
"github.com/SermoDigital/jose/jwt"
"github.com/stretchr/testify/assert"
"github.com/uninett/jwt-tokenissuer/conf"
"scm.uninett.no/daas/jwt-tokenissuer/conf"
auth "scm.uninett.no/laas/laasctl-auth"
)
......
......@@ -10,7 +10,7 @@ import (
"time"
log "github.com/Sirupsen/logrus"
"github.com/uninett/jwt-tokenissuer/conf"
"scm.uninett.no/daas/jwt-tokenissuer/conf"
auth "scm.uninett.no/laas/laasctl-auth"
)
......
......@@ -4,7 +4,7 @@ import (
"encoding/json"
"net/http"
"github.com/uninett/jwt-tokenissuer/conf"
"scm.uninett.no/daas/jwt-tokenissuer/conf"
)
type OpenIDConfig struct {
......
......@@ -9,7 +9,7 @@ import (
"github.com/SermoDigital/jose/crypto"
log "github.com/Sirupsen/logrus"
"github.com/uninett/jwt-tokenissuer/conf"
"scm.uninett.no/daas/jwt-tokenissuer/conf"
)
type Key struct {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment