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]]
|
[[package]]
|
||||||
name = "refractr"
|
name = "refractr"
|
||||||
version = "0.4.0"
|
version = "0.5.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"colored",
|
"colored",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "refractr"
|
name = "refractr"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
version = "0.4.0"
|
version = "0.5.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
12
build
12
build
|
@ -8,11 +8,15 @@ cargo update
|
||||||
cargo clean
|
cargo clean
|
||||||
|
|
||||||
# docker builds
|
# 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 refractr:latest
|
||||||
docker tag refractr:$version git.brysonsteck.xyz/brysonsteck/refractr:latest
|
if test "$1" = "push"; then
|
||||||
docker tag refractr:$version git.brysonsteck.xyz/brysonsteck/refractr:$version
|
docker tag refractr:$version git.brysonsteck.xyz/brysonsteck/refractr:latest
|
||||||
test "$1" = "push" && docker push -a git.brysonsteck.xyz/brysonsteck/refractr
|
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
|
# rust build
|
||||||
cargo build
|
cargo build
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
FROM rust:slim
|
FROM rust:slim
|
||||||
ARG UID="1000"
|
ARG UID="1000"
|
||||||
ARG GID="1000"
|
ARG GID="1000"
|
||||||
|
ARG VERSION
|
||||||
ENV REFRACTR_DOCKER="true"
|
ENV REFRACTR_DOCKER="true"
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.authors="me@brysonsteck.xyz"
|
||||||
|
LABEL version="${VERSION}"
|
||||||
|
LABEL license="MPL-2.0"
|
||||||
|
|
||||||
WORKDIR /usr/src/refractr
|
WORKDIR /usr/src/refractr
|
||||||
COPY . .
|
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;
|
use colored::Colorize;
|
||||||
|
|
||||||
pub enum ExitCode {
|
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::common;
|
||||||
use crate::refractr::Refractr;
|
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 common;
|
||||||
mod config;
|
mod config;
|
||||||
mod refractr;
|
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::common::{self, ReturnData, ExitCode};
|
||||||
use crate::config::{Config, ConfigFile};
|
use crate::config::{Config, ConfigFile};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue