add base build_release

This commit is contained in:
Kasper Juul Hermansen 2022-08-10 22:54:58 +02:00
parent ed47267613
commit cc845c195d
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
4 changed files with 24 additions and 2 deletions

View File

@ -3,5 +3,5 @@
base: "git@git.front.kjuulh.io:kjuulh/cuddle-base.git"
scripts:
build_dagger:
type: dagger
build_release:
type: shell

0
scripts/build.sh Normal file
View File

17
scripts/build_release.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
echo "building docker image"
tag="$REGISTRY/$NAME:${commit_sha:0:10}"
if [[ -n $DEBUG ]]
then
echo "debug:"
echo " REGISTRY: $REGISTRY"
echo " NAME: $NAME"
echo " tag: $tag"
echo " pwd: $PWD"
echo " cwd: $CWD"
fi
docker build -t "$tag" "$TMP/build_release.Dockerfile" .

View File

@ -0,0 +1,5 @@
FROM rust:1.62.1-slim-buster as builder
COPY . .
RUN cargo build