Browse Source

Fix variable names

Piotr Orzechowski 4 months ago
parent
commit
07de9da40b
2 changed files with 12 additions and 12 deletions
  1. 8
    8
      Dockerfile
  2. 4
    4
      build.sh

+ 8
- 8
Dockerfile View File

@@ -10,14 +10,14 @@ ENV GOPATH="/go"
10 10
 ENV SRC_DIR="${GOPATH}/src/code.gitea.io/gitea"
11 11
 WORKDIR "$SRC_DIR"
12 12
 
13
-ARG gitea_version
14
-ARG gitea_checksum
15
-ARG gitea_repo_url
16
-RUN set -eu; git clone --branch "v${gitea_version}" --depth 1 --no-checkout "$gitea_repo_url" .; \
17
-             git checkout "$gitea_checksum"
18
-
19
-ARG gitea_build_tags
20
-RUN set -eu; TAGS="$gitea_build_tags" make generate build
13
+ARG GITEA_VERSION
14
+ARG GITEA_CHECKSUM
15
+ARG GITEA_REPO_URL
16
+RUN set -eu; git clone --branch "v${GITEA_VERSION}" --depth 1 --no-checkout "$GITEA_REPO_URL" .; \
17
+             git checkout "$GITEA_CHECKSUM"
18
+
19
+ARG GITEA_BUILD_TAGS
20
+RUN set -eu; TAGS="$GITEA_BUILD_TAGS" make generate build
21 21
 
22 22
 FROM alpine:3.7
23 23
 

+ 4
- 4
build.sh View File

@@ -10,9 +10,9 @@ image_name='orzech/gitea'
10 10
 
11 11
 docker build \
12 12
   --disable-content-trust=false \
13
-  --build-arg gitea_version="$gitea_version" \
14
-  --build-arg gitea_checksum="$gitea_checksum" \
15
-  --build-arg gitea_build_tags="$gitea_build_tags" \
16
-  --build-arg gitea_repo_url="$gitea_repo_url" \
13
+  --build-arg GITEA_VERSION="$gitea_version" \
14
+  --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 17
   -t "${IMAGE_NAME:-${image_name}}" \
18 18
   .

Loading…
Cancel
Save