Skip to content

Add any mode for best-effort path resolution #5

Add any mode for best-effort path resolution

Add any mode for best-effort path resolution #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Remove local cargo config
run: rm -f .cargo/config.toml
- name: Install Rust
uses: dtolnay/rust-action@stable
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --release
- name: Test
run: cargo test
build-image:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Remove local cargo config
run: rm -f .cargo/config.toml
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
ghcr.io/browserup/sorcery-server:latest
ghcr.io/browserup/sorcery-server:${{ github.sha }}