From 96c5b5df730330bed8609a8d75bd64c13955fbb8 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Wed, 14 Apr 2021 12:43:57 +0200 Subject: [PATCH] Configure accounts' branch from docker-compose.accounts.yml. --- docker-compose.accounts.yml | 2 ++ docker/accounts/Dockerfile | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose.accounts.yml b/docker-compose.accounts.yml index 22d24541..f90391ad 100644 --- a/docker-compose.accounts.yml +++ b/docker-compose.accounts.yml @@ -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 diff --git a/docker/accounts/Dockerfile b/docker/accounts/Dockerfile index 8be44370..a87171a2 100644 --- a/docker/accounts/Dockerfile +++ b/docker/accounts/Dockerfile @@ -4,9 +4,11 @@ LABEL maintainer="NebulousLabs " 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