Skip to content

Add build workflow and Dockerfile #1

Add build workflow and Dockerfile

Add build workflow and Dockerfile #1

Workflow file for this run

name: "🛠️ Build"
on:
push:
branches:
- "master"
jobs:
release:
name: "🛠️ Build"
runs-on: ubuntu-latest
steps:
- name: "Code Checkout"
uses: actions/checkout@v4
- name: Build release binary
run: cargo build --release
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
push: true
context: .
platforms: linux/amd64
file: Dockerfile
tags: ghcr.io/antony1060/oidc-saml-demo:latest