-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.09 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: "🛠️ Build"
on:
push:
branches:
- "master"
jobs:
release:
name: "🛠️ Build"
runs-on: ubuntu-latest
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- name: Code Checkout
uses: actions/checkout@v4
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.7
- name: Install libxmlsec1-dev (dep)
run: |
sudo apt-get update
sudo apt-get -y install libxmlsec1-dev
- 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
uses: docker/build-push-action@v3
with:
push: true
context: .
platforms: linux/amd64
file: Dockerfile
tags: ghcr.io/antony1060/oidc-saml-demo:latest