mirror of https://github.com/cncf/gitvote.git
Upgrade deps, base images and GH actions (#469)
Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
This commit is contained in:
parent
b315f8958a
commit
f47b91c8a1
|
|
@ -35,7 +35,7 @@ jobs:
|
|||
- name: Run chart-testing (lint)
|
||||
run: ct lint --config .ct.yaml --target-branch ${{ github.event.repository.default_branch }}
|
||||
- name: Create kind cluster
|
||||
uses: helm/kind-action@v1.8.0
|
||||
uses: helm/kind-action@v1.9.0
|
||||
if: steps.list-changed.outputs.changed == 'true'
|
||||
- name: Run chart-testing (install)
|
||||
run: ct install --config .ct.yaml --target-branch ${{ github.event.repository.default_branch }}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ jobs:
|
|||
- name: Setup Rust
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: 1.75.0
|
||||
toolchain: 1.76.0
|
||||
components: clippy, rustfmt
|
||||
- name: Run clippy
|
||||
run: cargo clippy --all-targets --all-features -- --deny warnings
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
36
Cargo.toml
36
Cargo.toml
|
|
@ -6,14 +6,14 @@ license = "Apache-2.0"
|
|||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.79"
|
||||
anyhow = "1.0.80"
|
||||
askama = "0.12.1"
|
||||
askama_axum = "0.4.0"
|
||||
async-channel = "2.1.1"
|
||||
async-channel = "2.2.0"
|
||||
async-trait = "0.1.77"
|
||||
axum = { version = "0.7.3", features = ["macros"] }
|
||||
clap = { version = "4.4.14", features = ["derive"] }
|
||||
config = "0.13.4"
|
||||
axum = { version = "0.7.4", features = ["macros"] }
|
||||
clap = { version = "4.5.1", features = ["derive"] }
|
||||
config = "0.14.0"
|
||||
deadpool-postgres = { version = "0.12.1", features = ["serde"] }
|
||||
futures = "0.3.30"
|
||||
hex = "0.4.3"
|
||||
|
|
@ -23,18 +23,18 @@ humantime-serde = "1.1.1"
|
|||
ignore = "0.4.22"
|
||||
jsonwebtoken = "9.2.0"
|
||||
lazy_static = "1.4.0"
|
||||
octocrab = "0.32.0"
|
||||
openssl = { version = "0.10.62", features = ["vendored"] }
|
||||
octocrab = "0.34.2"
|
||||
openssl = { version = "0.10.64", features = ["vendored"] }
|
||||
postgres-openssl = "0.5.0"
|
||||
regex = "1.10.2"
|
||||
reqwest = "0.11.23"
|
||||
serde = { version = "1.0.195", features = ["derive"] }
|
||||
serde_json = "1.0.111"
|
||||
serde_yaml = "0.9.30"
|
||||
regex = "1.10.3"
|
||||
reqwest = "0.11.24"
|
||||
serde = { version = "1.0.197", features = ["derive"] }
|
||||
serde_json = "1.0.114"
|
||||
serde_yaml = "0.9.32"
|
||||
sha2 = "0.10.8"
|
||||
thiserror = "1.0.56"
|
||||
time = { version = "0.3.31", features = ["serde"] }
|
||||
tokio = { version = "1.35.1", features = [
|
||||
thiserror = "1.0.57"
|
||||
time = { version = "0.3.34", features = ["serde"] }
|
||||
tokio = { version = "1.36.0", features = [
|
||||
"macros",
|
||||
"rt-multi-thread",
|
||||
"signal",
|
||||
|
|
@ -46,12 +46,12 @@ tokio-postgres = { version = "0.7.10", features = [
|
|||
"with-time-0_3",
|
||||
] }
|
||||
tower = "0.4.13"
|
||||
tower-http = { version = "0.5.0", features = ["trace"] }
|
||||
tower-http = { version = "0.5.2", features = ["trace"] }
|
||||
tracing = "0.1.40"
|
||||
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json"] }
|
||||
uuid = { version = "1.6.1", features = ["serde", "v4"] }
|
||||
uuid = { version = "1.7.0", features = ["serde", "v4"] }
|
||||
|
||||
[dev-dependencies]
|
||||
http-body = "1.0.0"
|
||||
hyper = "1.1.0"
|
||||
hyper = "1.2.0"
|
||||
mockall = "0.12.1"
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ WORKDIR /gitvote/src
|
|||
RUN cargo build --release
|
||||
|
||||
# Final stage
|
||||
FROM alpine:3.19.0
|
||||
FROM alpine:3.19.1
|
||||
RUN apk --no-cache add ca-certificates && addgroup -S gitvote && adduser -S gitvote -G gitvote
|
||||
USER gitvote
|
||||
WORKDIR /home/gitvote
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
# Build tern
|
||||
FROM golang:1.21.6-alpine3.19 AS tern
|
||||
FROM golang:1.22.0-alpine3.19 AS tern
|
||||
RUN apk --no-cache add git
|
||||
RUN go install github.com/jackc/tern@latest
|
||||
|
||||
# Build final image
|
||||
FROM alpine:3.19.0
|
||||
FROM alpine:3.19.1
|
||||
RUN addgroup -S gitvote && adduser -S gitvote -G gitvote
|
||||
USER gitvote
|
||||
WORKDIR /home/gitvote
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
use crate::cfg::CfgProfile;
|
||||
use anyhow::{Error, Result};
|
||||
use async_trait::async_trait;
|
||||
use axum::http::HeaderValue;
|
||||
use axum::http::{HeaderValue, StatusCode};
|
||||
#[cfg(test)]
|
||||
use mockall::automock;
|
||||
use octocrab::{models::InstallationId, Octocrab, Page};
|
||||
use reqwest::StatusCode;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::{json, Value};
|
||||
use std::sync::Arc;
|
||||
|
|
|
|||
Loading…
Reference in New Issue