Skip to content

Commit

Permalink
getting source using BRANCH env
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricionaweb committed Nov 15, 2023
1 parent aa0fb73 commit 509ba35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
BRANCH=master
VERSION=1.4.0
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ WORKDIR /src
FROM base AS source

# get and extract source from git
ARG BRANCH
ARG VERSION
ADD https://github.com/Cloudbox/autoscan.git#v$VERSION ./
ADD https://github.com/Cloudbox/autoscan.git#${BRANCH:-v$VERSION} ./

# build stage ==================================================================
FROM base AS build-app
Expand Down

0 comments on commit 509ba35

Please sign in to comment.