bump version, add notices, update build script
This commit is contained in:
parent
1d2e915cea
commit
a077d70598
8 changed files with 47 additions and 6 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -574,7 +574,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "refractr"
|
||||
version = "0.4.0"
|
||||
version = "0.5.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"colored",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "refractr"
|
||||
license = "MPL-2.0"
|
||||
version = "0.4.0"
|
||||
version = "0.5.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
|
12
build
12
build
|
@ -8,11 +8,15 @@ cargo update
|
|||
cargo clean
|
||||
|
||||
# docker builds
|
||||
docker build -t refractr:$version --build-arg UID=$uid --build-arg GID=$gid -f package.Dockerfile .
|
||||
docker build -t refractr:$version --build-arg UID=$uid --build-arg GID=$gid --build-arg VERSION=$version -f package.Dockerfile .
|
||||
docker tag refractr:$version refractr:latest
|
||||
docker tag refractr:$version git.brysonsteck.xyz/brysonsteck/refractr:latest
|
||||
docker tag refractr:$version git.brysonsteck.xyz/brysonsteck/refractr:$version
|
||||
test "$1" = "push" && docker push -a git.brysonsteck.xyz/brysonsteck/refractr
|
||||
if test "$1" = "push"; then
|
||||
docker tag refractr:$version git.brysonsteck.xyz/brysonsteck/refractr:latest
|
||||
docker tag refractr:$version git.brysonsteck.xyz/brysonsteck/refractr:$version
|
||||
docker push -a git.brysonsteck.xyz/brysonsteck/refractr
|
||||
docker image rm git.brysonsteck.xyz/brysonsteck/refractr:latest
|
||||
docker image rm git.brysonsteck.xyz/brysonsteck/refractr:$version
|
||||
fi
|
||||
|
||||
# rust build
|
||||
cargo build
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
FROM rust:slim
|
||||
ARG UID="1000"
|
||||
ARG GID="1000"
|
||||
ARG VERSION
|
||||
ENV REFRACTR_DOCKER="true"
|
||||
|
||||
LABEL org.opencontainers.image.authors="me@brysonsteck.xyz"
|
||||
LABEL version="${VERSION}"
|
||||
LABEL license="MPL-2.0"
|
||||
|
||||
WORKDIR /usr/src/refractr
|
||||
COPY . .
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* Copyright 2025 Bryson Steck <me@brysonsteck.xyz>
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
use colored::Colorize;
|
||||
|
||||
pub enum ExitCode {
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* Copyright 2025 Bryson Steck <me@brysonsteck.xyz>
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
use crate::common;
|
||||
use crate::refractr::Refractr;
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* Copyright 2025 Bryson Steck <me@brysonsteck.xyz>
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
mod common;
|
||||
mod config;
|
||||
mod refractr;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* Copyright 2025 Bryson Steck <me@brysonsteck.xyz>
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
use crate::common::{self, ReturnData, ExitCode};
|
||||
use crate::config::{Config, ConfigFile};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue