Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
daas
jwt-tokenissuer
Commits
30768154
Commit
30768154
authored
Oct 03, 2018
by
Pål Karlsrud
Browse files
Add the initial .gitlab-ci config.
parent
36da8fae
Changes
8
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
30768154
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
glide.lock
View file @
30768154
hash:
fbcc70bf29d6df51236f1ecd69b24562437431708eda5bb737ea503fd7927b9b
hash:
6a92aaaf8172dd08bfcda7f751c44c6b5c732ddf8f172b3ae2e7ff850d8f8134
updated: 201
7-05-02T21:03:50.032099986
+02:00
updated: 201
8-10-03T18:01:21.852219367
+02:00
imports:
imports:
- name: github.com/davecgh/go-spew
version: 04cdfd42973bb9c8589fd6a731800cf222fde1a9
subpackages:
- spew
- name: github.com/fsnotify/fsnotify
- name: github.com/fsnotify/fsnotify
version: 4da3e2cfbabc9f751898f250b49f2439785783a1
version: 4da3e2cfbabc9f751898f250b49f2439785783a1
- name: github.com/hashicorp/hcl
- name: github.com/hashicorp/hcl
...
@@ -68,10 +72,6 @@ imports:
...
@@ -68,10 +72,6 @@ imports:
- name: scm.uninett.no/laas/laasctl-auth
- name: scm.uninett.no/laas/laasctl-auth
version: 62381836011426500170e6cc7c2fb462bfaad500
version: 62381836011426500170e6cc7c2fb462bfaad500
testImports:
testImports:
- name: github.com/davecgh/go-spew
version: 04cdfd42973bb9c8589fd6a731800cf222fde1a9
subpackages:
- spew
- name: github.com/pmezard/go-difflib
- name: github.com/pmezard/go-difflib
version: d8ed2627bdf02c080bf22230dbb337003b7aba2d
version: d8ed2627bdf02c080bf22230dbb337003b7aba2d
subpackages:
subpackages:
...
...
glide.yaml
View file @
30768154
package
:
github.com/uninett
/jwt-tokenissuer
package
:
scm.uninett.no/daas
/jwt-tokenissuer
import
:
import
:
-
package
:
github.com/Sirupsen/logrus
-
package
:
github.com/Sirupsen/logrus
version
:
^0.11.4
version
:
^0.11.4
...
...
jwt.go
View file @
30768154
...
@@ -15,7 +15,7 @@ import (
...
@@ -15,7 +15,7 @@ import (
"github.com/SermoDigital/jose/crypto"
"github.com/SermoDigital/jose/crypto"
"github.com/SermoDigital/jose/jws"
"github.com/SermoDigital/jose/jws"
log
"github.com/Sirupsen/logrus"
log
"github.com/Sirupsen/logrus"
"
github.com/uninett
/jwt-tokenissuer/conf"
"
scm.uninett.no/daas
/jwt-tokenissuer/conf"
)
)
type
JWTMiddleware
struct
{
type
JWTMiddleware
struct
{
...
...
jwt_test.go
View file @
30768154
...
@@ -13,7 +13,7 @@ import (
...
@@ -13,7 +13,7 @@ import (
"github.com/SermoDigital/jose/jws"
"github.com/SermoDigital/jose/jws"
"github.com/SermoDigital/jose/jwt"
"github.com/SermoDigital/jose/jwt"
"github.com/stretchr/testify/assert"
"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"
auth
"scm.uninett.no/laas/laasctl-auth"
)
)
...
...
main.go
View file @
30768154
...
@@ -10,7 +10,7 @@ import (
...
@@ -10,7 +10,7 @@ import (
"time"
"time"
log
"github.com/Sirupsen/logrus"
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"
auth
"scm.uninett.no/laas/laasctl-auth"
)
)
...
...
openid_config.go
View file @
30768154
...
@@ -4,7 +4,7 @@ import (
...
@@ -4,7 +4,7 @@ import (
"encoding/json"
"encoding/json"
"net/http"
"net/http"
"
github.com/uninett
/jwt-tokenissuer/conf"
"
scm.uninett.no/daas
/jwt-tokenissuer/conf"
)
)
type
OpenIDConfig
struct
{
type
OpenIDConfig
struct
{
...
...
openid_jwks.go
View file @
30768154
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
"github.com/SermoDigital/jose/crypto"
"github.com/SermoDigital/jose/crypto"
log
"github.com/Sirupsen/logrus"
log
"github.com/Sirupsen/logrus"
"
github.com/uninett
/jwt-tokenissuer/conf"
"
scm.uninett.no/daas
/jwt-tokenissuer/conf"
)
)
type
Key
struct
{
type
Key
struct
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment