Compare commits
2
Commits
20240929-2
...
20240929-3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a061bb3c6 | ||
|
|
6c3b8eaa92 |
@@ -61,7 +61,7 @@ jobs:
|
|||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
project: [delta, bonfire, autumn]
|
project: [delta, bonfire, autumn, january]
|
||||||
name: Build ${{ matrix.project }} image
|
name: Build ${{ matrix.project }} image
|
||||||
steps:
|
steps:
|
||||||
# Configure build environment
|
# Configure build environment
|
||||||
@@ -102,6 +102,10 @@ jobs:
|
|||||||
"autumn": {
|
"autumn": {
|
||||||
"path": "crates/services/autumn",
|
"path": "crates/services/autumn",
|
||||||
"tag": "${{ github.repository_owner }}/autumn"
|
"tag": "${{ github.repository_owner }}/autumn"
|
||||||
|
},
|
||||||
|
"january": {
|
||||||
|
"path": "crates/services/january",
|
||||||
|
"tag": "${{ github.repository_owner }}/january"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export_to: output
|
export_to: output
|
||||||
|
|||||||
@@ -62,6 +62,11 @@ pub async fn fetch_from_s3(bucket_id: &str, path: &str, nonce: &str) -> Result<V
|
|||||||
// we just want the Vec<u8>
|
// we just want the Vec<u8>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// File is not encrypted
|
||||||
|
if nonce.is_empty() {
|
||||||
|
return Ok(buf);
|
||||||
|
}
|
||||||
|
|
||||||
// Recover nonce as bytes
|
// Recover nonce as bytes
|
||||||
let nonce = &BASE64_STANDARD.decode(nonce).unwrap()[..];
|
let nonce = &BASE64_STANDARD.decode(nonce).unwrap()[..];
|
||||||
let nonce: &Nonce<typenum::consts::U12> = nonce.into();
|
let nonce: &Nonce<typenum::consts::U12> = nonce.into();
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# Build Stage
|
||||||
|
FROM ghcr.io/revoltchat/base:latest AS builder
|
||||||
|
|
||||||
|
# Bundle Stage
|
||||||
|
FROM gcr.io/distroless/cc-debian12:nonroot
|
||||||
|
COPY --from=builder /home/rust/src/target/release/revolt-january ./
|
||||||
|
COPY --from=mwader/static-ffmpeg:7.0.2 /ffmpeg /usr/local/bin/
|
||||||
|
COPY --from=mwader/static-ffmpeg:7.0.2 /ffprobe /usr/local/bin/
|
||||||
|
|
||||||
|
EXPOSE 14705
|
||||||
|
USER nonroot
|
||||||
|
CMD ["./revolt-january"]
|
||||||
Reference in New Issue
Block a user