Skip to content

Commit b559c21

Browse files
committed
feat : add bash script to build docker image
1 parent d494986 commit b559c21

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Added
66

77
* Add Dockerfile to build and run the application in a container
8+
* Add bash script to build docker image
89

910
## [1.7.0] - 2024-11-24
1011

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stage 1: Build the application
22
FROM golang:1.23-alpine AS builder
33

4-
ARG VERSION=v1.7.0
4+
ARG VERSION
55
ARG URL=https://github.com/LordPax/go-scan2epub
66

77
WORKDIR /app

docker-build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
[ -z "$1" ] && echo "Usage: $0 <version>" && exit 1
4+
echo "Building version $1"
5+
docker build --build-arg VERSION=$1 -t lordpax/scan2epub:$1 -t lordpax/scan2epub:latest .
6+
docker push lordpax/scan2epub:$1
7+
docker push lordpax/scan2epub:latest

0 commit comments

Comments
 (0)