Browse Source

Simplify build scripts

Piotr Orzechowski 4 months ago
parent
commit
404e94d7c8
2 changed files with 2 additions and 6 deletions
  1. 2
    2
      Dockerfile
  2. 0
    4
      build.sh

+ 2
- 2
Dockerfile View File

@@ -12,11 +12,11 @@ WORKDIR "$SRC_DIR"
12 12
 
13 13
 ARG GITEA_VERSION
14 14
 ARG GITEA_CHECKSUM
15
-ARG GITEA_REPO_URL
15
+ARG GITEA_REPO_URL="https://github.com/go-gitea/gitea.git"
16 16
 RUN set -eu; git clone --branch "v${GITEA_VERSION}" --depth 1 --no-checkout "$GITEA_REPO_URL" .; \
17 17
              git checkout "$GITEA_CHECKSUM"
18 18
 
19
-ARG GITEA_BUILD_TAGS
19
+ARG GITEA_BUILD_TAGS="bindata sqlite"
20 20
 RUN set -eu; TAGS="$GITEA_BUILD_TAGS" make generate build
21 21
 
22 22
 FROM alpine:3.8

+ 0
- 4
build.sh View File

@@ -4,15 +4,11 @@ set -eu
4 4
 
5 5
 gitea_version='1.4.1'
6 6
 gitea_checksum='abc159637c2ec430d7636e35c6829f7fe0458864'
7
-gitea_build_tags='bindata sqlite'
8
-gitea_repo_url='https://github.com/go-gitea/gitea.git'
9 7
 image_name='orzech/gitea'
10 8
 
11 9
 docker build \
12 10
   --disable-content-trust=false \
13 11
   --build-arg GITEA_VERSION="$gitea_version" \
14 12
   --build-arg GITEA_CHECKSUM="$gitea_checksum" \
15
-  --build-arg GITEA_BUILD_TAGS="$gitea_build_tags" \
16
-  --build-arg GITEA_REPO_URL="$gitea_repo_url" \
17 13
   -t "${IMAGE_NAME:-${image_name}}" \
18 14
   .

Loading…
Cancel
Save