Initial v2.2.0 push

This commit is contained in:
DaXcess
2024-08-12 16:14:24 +02:00
parent d1c01e9274
commit 97c18385dd
97 changed files with 7252 additions and 5211 deletions
+16 -6
View File
@@ -2,16 +2,16 @@ name: Build and push to registry
on:
push:
branches: [ "main", "dev" ]
tags: [ "v*.*.*" ]
branches: ["main", "dev"]
tags: ["v*.*.*"]
pull_request:
branches: [ "main", "dev" ]
branches: ["main", "dev"]
workflow_dispatch:
permissions:
packages: write
contents: read
jobs:
build-and-push:
name: Build Docker image and push to registry
@@ -53,6 +53,15 @@ jobs:
type=semver,pattern={{major}}
type=sha
- name: Inject Docker cache
uses: reproducible-containers/buildkit-cache-dance@v3.1.0
with:
cache-map: |
{
"usr-local-cargo-registry": "/usr/local/cargo/registry",
"app-target": "/app/target"
}
- name: Build image and push to registry
uses: docker/build-push-action@v5
with:
@@ -62,5 +71,6 @@ jobs:
tags: ${{ steps.docker-meta.outputs.tags }}
labels: ${{ steps.docker-meta.outputs.labels }}
# Some basic caching of the layers...
cache-from: ${{ steps.repo-uri-string.outputs.lowercase }}:latest-cache
cache-to: ${{ steps.repo-uri-string.outputs.lowercase }}:latest-cache
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false
+3 -3
View File
@@ -10,15 +10,15 @@ jobs:
clippy:
name: Run Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run Cargo Clippy
run: cargo clippy --all-targets --all-features -- -D warnings