Configure accounts' branch from docker-compose.accounts.yml.

This commit is contained in:
Ivaylo Novakov 2021-04-14 12:43:57 +02:00
parent d1549a638d
commit 96c5b5df73
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
2 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,8 @@ services:
build:
context: ./docker/accounts
dockerfile: Dockerfile
args:
branch: ivo/limit_delete
container_name: accounts
restart: unless-stopped
logging: *default-logging

View File

@ -4,9 +4,11 @@ LABEL maintainer="NebulousLabs <devs@nebulous.tech>"
ENV GOOS linux
ENV GOARCH amd64
ARG branch=main
WORKDIR /root
RUN git clone --single-branch --branch main https://github.com/NebulousLabs/skynet-accounts.git && \
RUN git clone --single-branch --branch ${branch} https://github.com/NebulousLabs/skynet-accounts.git && \
cd skynet-accounts && \
go mod download && \
make release