Skip to content

Commit

Permalink
Add GitHub Actions and enable Dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoenig10 committed Feb 15, 2021
1 parent f5354c0 commit eb2d1a3
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 7 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI

on:
pull_request:
push:
branches:
- master

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- run: test -z $(go fmt)
- run: go build
- run: go vet
- run: go test
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
push:
branches:
- master

jobs:
release:
name: Docker
runs-on: ubuntu-latest
steps:
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- uses: docker/build-push-action@v2
with:
push: true
tags: |
pkoenig10/oidc-rp:latest
pkoenig10/oidc-rp:${{ github.sha }}
ghcr.io/pkoenig10/oidc-rp:latest
ghcr.io/pkoenig10/oidc-rp:${{ github.sha }}
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[hub]: https://hub.docker.com/r/pkoenig10/oidc-rp

# oidc-rp

[![Docker Build Status](https://img.shields.io/docker/cloud/build/pkoenig10/oidc-rp.svg)][hub] [![Docker Automated Build](https://img.shields.io/docker/cloud/automated/pkoenig10/oidc-rp.svg)][hub] [![Docker Pulls](https://img.shields.io/docker/pulls/pkoenig10/oidc-rp.svg)][hub] [![Docker Stars](https://img.shields.io/docker/stars/pkoenig10/oidc-rp.svg)][hub]
[![](https://img.shields.io/github/workflow/status/pkoenig10/oidc-rp/CI?label=ci)][actions]
[![](https://img.shields.io/github/workflow/status/pkoenig10/oidc-rp/Release?label=release)][actions]

An [OpenID Connect](https://openid.net/connect/) Relying Party server that can be used with the [NGINX](https://www.nginx.com/) [auth_request module](http://nginx.org/en/docs/http/ngx_http_auth_request_module.html).

Expand Down Expand Up @@ -84,3 +83,5 @@ group2:
- [email protected]
- [email protected]
```

[actions]: https://github.com/pkoenig10/oidc-rp/actions
4 changes: 0 additions & 4 deletions hooks/post_push

This file was deleted.

0 comments on commit eb2d1a3

Please sign in to comment.