add base build_release
This commit is contained in:
parent
ed47267613
commit
cc845c195d
@ -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
0
scripts/build.sh
Normal file
17
scripts/build_release.sh
Normal file
17
scripts/build_release.sh
Normal 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" .
|
5
templates/build_release.Dockerfile
Normal file
5
templates/build_release.Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM rust:1.62.1-slim-buster as builder
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN cargo build
|
Loading…
Reference in New Issue
Block a user