Skip to content

Commit

Permalink
Workflow fixed
Browse files Browse the repository at this point in the history
НАХУЙ ЭТО ГОВНО!
  • Loading branch information
shiroyashik committed Sep 30, 2024
1 parent 0526cc9 commit c0bf550
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: Get short SHA
id: short_sha
run: echo "::set-output name=sha::$(echo ${GITHUB_SHA} | cut -c1-7)"
run: echo "sha=$(echo ${GITHUB_SHA} | cut -c1-7)" >> $GITHUB_OUTPUT

- name: Build and push
uses: docker/build-push-action@v6
Expand Down
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ version = "0.4.0-dev"
edition = "2021"
publish = false

build = "build.rs"

[dependencies]
# Logging
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "chrono"] }
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Chef
# FROM clux/muslrust:stable AS chef
FROM rust:1.81.0-alpine3.20 as chef
FROM rust:1.81.0-alpine3.20 AS chef
USER root
RUN apk add musl-dev libressl-dev
RUN apk add --no-cache musl-dev libressl-dev
RUN cargo install cargo-chef
WORKDIR /build

Expand Down
17 changes: 0 additions & 17 deletions build.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ pub const AVATARS_ENV: &'static str = "AVATARS_FOLDER";
// Instance info
pub const SCULPTOR_VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub const REPOSITORY: &'static str = "shiroyashik/sculptor";
pub const GIT_HASH: &'static str = env!("GIT_HASH", "Can't run git or build.rs failing!");

// reqwest parameters
pub const USER_AGENT: &'static str = "reqwest";
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async fn main() -> Result<()> {
}));

// 3. Display info about current instance and check updates
tracing::info!("The Sculptor v{SCULPTOR_VERSION}+{} ({REPOSITORY})", &GIT_HASH[..7]);
tracing::info!("The Sculptor v{SCULPTOR_VERSION} ({REPOSITORY})");
// let _ = check_updates(REPOSITORY, SCULPTOR_VERSION).await; // Currently, there is no need to do anything with the result of the function

match get_latest_version(REPOSITORY).await {
Expand Down

0 comments on commit c0bf550

Please sign in to comment.