[ci] Set application to production mode on publish

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-01-20 01:22:35 +01:00
parent 71ea4a0c34
commit 900e478e00
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D
2 changed files with 3 additions and 1 deletions

View file

@ -15,4 +15,5 @@ environment:
GO111MODULE: on GO111MODULE: on
GOPATH: /go GOPATH: /go
MOD_MODE: readonly MOD_MODE: readonly
NODE_ENV: production
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/go/bin PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/go/bin

View file

@ -4,7 +4,8 @@ COPY . /go/src/github.com/Luzifer/twitch-bot
WORKDIR /go/src/github.com/Luzifer/twitch-bot WORKDIR /go/src/github.com/Luzifer/twitch-bot
ENV CGO_ENABLED=0 \ ENV CGO_ENABLED=0 \
GOPATH=/go GOPATH=/go \
NODE_ENV=production
RUN set -ex \ RUN set -ex \
&& pacman -Syy --noconfirm \ && pacman -Syy --noconfirm \