Skip to content

Commit

Permalink
Cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
githubsaturn committed Dec 22, 2024
1 parent b95a102 commit 7c8468a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions build_and_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ replaceVariablesInDockerfile() {
return 1
fi

# Backup the original Dockerfile.prod
cp "$file" "${file}.bak"

# Split the variables string into an array
IFS=',' read -r -a variables <<<"$variables_string"

Expand All @@ -53,13 +50,10 @@ replaceVariablesInDockerfile() {
sed -i "s/\$$var/$value/g" "$file"
done

echo "Replacement complete. Original file backed up as ${file}.bak."
}

replaceVariablesInDockerfile goaccess_version

exit 0

# ensure you're not running it on local machine
if [ -z "$CI" ] || [ -z "$GITHUB_REF" ]; then
echo "Running on a local machine! Exiting!"
Expand Down Expand Up @@ -97,8 +91,4 @@ docker buildx create --name mybuilder
docker buildx use mybuilder

# docker buildx build --platform linux/arm -t $IMAGE_NAME:$CAPROVER_VERSION -t $IMAGE_NAME:latest -f dockerfile-captain.edge --push .
docker buildx build --platform linux/amd64,linux/arm64,linux/arm -t $IMAGE_NAME:$CAPROVER_VERSION -t $IMAGE_NAME:latest -f Dockerfile.goaccess --push .

# docker build -t $IMAGE_NAME:$CAPROVER_VERSION -t $IMAGE_NAME:latest -f dockerfile-captain.edge .
# docker push $IMAGE_NAME:latest
# docker push $IMAGE_NAME:$CAPROVER_VERSION
docker buildx build --platform linux/amd64,linux/arm64,linux/arm -t $IMAGE_NAME:$goaccess_version -t $IMAGE_NAME:latest -f Dockerfile.goaccess --push .

0 comments on commit 7c8468a

Please sign in to comment.