Skip to content

Static musl release image, and fix JWT verification broken by #28 #11

Static musl release image, and fix JWT verification broken by #28

Static musl release image, and fix JWT verification broken by #28 #11

Workflow file for this run

name: Rust Build CI
on:
release:
types: [published]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: build and test
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: check repository
uses: actions/checkout@v4
- name: build
run: cargo build --release --locked --workspace
- name: test
run: cargo test --workspace
docker:
name: push docker image to hub
if: github.event_name == 'release'
needs: build
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: check repository
uses: actions/checkout@v4
- name: login to docker registry
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: nihaopaul/forward-auth-rust
- name: build and push docker image to registry
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}