diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a960e0..d476313 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Added * Add Dockerfile to build and run the application in a container +* Add bash script to build docker image ## [1.7.0] - 2024-11-24 diff --git a/Dockerfile b/Dockerfile index 075c40a..9143e2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Stage 1: Build the application FROM golang:1.23-alpine AS builder -ARG VERSION=v1.7.0 +ARG VERSION ARG URL=https://github.com/LordPax/go-scan2epub WORKDIR /app diff --git a/docker-build.sh b/docker-build.sh new file mode 100755 index 0000000..3cc07b7 --- /dev/null +++ b/docker-build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +[ -z "$1" ] && echo "Usage: $0 " && exit 1 +echo "Building version $1" +docker build --build-arg VERSION=$1 -t lordpax/scan2epub:$1 -t lordpax/scan2epub:latest . +docker push lordpax/scan2epub:$1 +docker push lordpax/scan2epub:latest