Skip to content

Commit

Permalink
feat : add bash script to build docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
LordPax committed Nov 24, 2024
1 parent d494986 commit b559c21
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions docker-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

[ -z "$1" ] && echo "Usage: $0 <version>" && 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

0 comments on commit b559c21

Please sign in to comment.