Skip to content

Commit

Permalink
add better image tagging for container
Browse files Browse the repository at this point in the history
  • Loading branch information
Gearl Brace authored and gearlbrace committed Dec 26, 2023
1 parent ffe3de4 commit 3ff5432
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion contrib/container-build/buildit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ OUTDIR=~/build
SCRIPTDIR=${PWD}/scripts
MACHINE=linux_gcc_x86_64

#Bump this any time there's a change to the Dockerfile
IMAGETAG=0.5

GETOPT=$(getopt -o :t:m:h -l tag:,machine:,help -n $0 -- "$@")
eval set -- "$GETOPT"

Expand Down Expand Up @@ -46,7 +49,7 @@ fi



$DOCKER image exists fdbuilder:latest || $DOCKER build -t fdbuilder:latest .
$DOCKER image exists fdbuilder:$IMAGETAG || $DOCKER build -t fdbuilder:$IMAGETAG -t fdbuilder:latest .

$DOCKER run --rm \
--volume "$OUTDIR:/build/out:Z" \
Expand Down
2 changes: 1 addition & 1 deletion contrib/container-build/scripts/fdbuild.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -xeo pipefail
set -eo pipefail

GITDIR=/build/src
source "$HOME/.cargo/env"
Expand Down

0 comments on commit 3ff5432

Please sign in to comment.