Configure accounts' branch from docker-compose.accounts.yml.
This commit is contained in:
parent
d1549a638d
commit
96c5b5df73
|
@ -24,6 +24,8 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ./docker/accounts
|
context: ./docker/accounts
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
branch: ivo/limit_delete
|
||||||
container_name: accounts
|
container_name: accounts
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
logging: *default-logging
|
logging: *default-logging
|
||||||
|
|
|
@ -4,9 +4,11 @@ LABEL maintainer="NebulousLabs <devs@nebulous.tech>"
|
||||||
ENV GOOS linux
|
ENV GOOS linux
|
||||||
ENV GOARCH amd64
|
ENV GOARCH amd64
|
||||||
|
|
||||||
|
ARG branch=main
|
||||||
|
|
||||||
WORKDIR /root
|
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 && \
|
cd skynet-accounts && \
|
||||||
go mod download && \
|
go mod download && \
|
||||||
make release
|
make release
|
||||||
|
|
Reference in New Issue