Escape and lowercase variables
This commit is contained in:
parent
96ff13057f
commit
35aa9ed7fa
5 changed files with 9 additions and 9 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
/config.toml
|
/config.toml
|
||||||
/compose.yml
|
/compose.yml
|
||||||
/target
|
/target
|
||||||
/$REPO_NAME
|
/$REPO_NAME_LOWER
|
||||||
|
|
|
@ -3,7 +3,7 @@ name = "${REPO_NAME}"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Manuel <git@huesers.de>"]
|
authors = ["Manuel <git@huesers.de>"]
|
||||||
description = "${REPO_DESCRIPTION}"
|
description = "${REPO_DESCRIPTION}"
|
||||||
homepage = "${REPO_LINK}"
|
homepage = "https://git.snrd.eu/${REPO_OWNER_LOWER}/${REPO_NAME_LOWER}"
|
||||||
repository = "${REPO_HTTPS_URL}"
|
repository = "${REPO_HTTPS_URL}"
|
||||||
keywords = []
|
keywords = []
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
|
@ -9,8 +9,8 @@ RUN cargo install --path . -j $(nproc)
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
COPY --from=build /usr/local/cargo/bin/$REPO_NAME /app/$REPO_NAME
|
COPY --from=build /usr/local/cargo/bin/$REPO_NAME_LOWER /app/$REPO_NAME_LOWER
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apk add --no-cache libgcc
|
RUN apk add --no-cache libgcc
|
||||||
|
|
||||||
CMD ["./${REPO_NAME}"]
|
CMD ["./${REPO_NAME_LOWER}"]
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
services:
|
services:
|
||||||
$REPO_NAME:
|
$REPO_NAME_LOWER:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: git.snrd.eu/$REPO_OWNER/$REPO_NAME:latest
|
image: git.snrd.eu/$REPO_OWNER_LOWER/$REPO_NAME_LOWER:latest
|
||||||
container_name: $REPO_NAME
|
container_name: $REPO_NAME_LOWER
|
||||||
network_mode: bridge
|
network_mode: bridge
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.toml:/app/config.toml:ro
|
- ./config.toml:/app/config.toml:ro
|
||||||
|
|
|
@ -2,7 +2,7 @@ variable "REG" {
|
||||||
default = "git.snrd.eu"
|
default = "git.snrd.eu"
|
||||||
}
|
}
|
||||||
variable "REPO" {
|
variable "REPO" {
|
||||||
default = "${REPO_OWNER}/${REPO_NAME}"
|
default = "${REPO_OWNER_LOWER}/${REPO_NAME_LOWER}"
|
||||||
}
|
}
|
||||||
variable "TAG" {
|
variable "TAG" {
|
||||||
default = "latest"
|
default = "latest"
|
||||||
|
@ -14,7 +14,7 @@ group "default" {
|
||||||
|
|
||||||
target "default" {
|
target "default" {
|
||||||
#platforms = [ "linux/amd64", "linux/arm64", "linux/arm/v7", "linux/riscv64" ]
|
#platforms = [ "linux/amd64", "linux/arm64", "linux/arm/v7", "linux/riscv64" ]
|
||||||
tags = ["${REG}/${REPO}:latest", "${REG}/${REPO}:${TAG}"]
|
tags = ["$${REG}/$${REPO}:latest", "$${REG}/$${REPO}:$${TAG}"]
|
||||||
attest = [
|
attest = [
|
||||||
"type=provenance,disabled=true",
|
"type=provenance,disabled=true",
|
||||||
"type=sbom,disabled=true"
|
"type=sbom,disabled=true"
|
||||||
|
|
Loading…
Reference in a new issue