Compare commits

..

No commits in common. "master" and "v0.0.1" have entirely different histories.

3 changed files with 5 additions and 9 deletions

View File

@ -58,7 +58,7 @@ jobs:
USERNAME: ${{ vars.USERNAME }}
TAG_VERSION: ${{ github.ref_name }}
NATS_SERVICE_URL: "${{ vars.NATS_SERVICE_URL }}"
ENV: "${{ vars.ENVIRONMENT }}"
ENV: "production"
APPLICATION_PORT: "${{ vars.APPLICATION_PORT }}"
DATA_SOURCE_URL: "${{ vars.DATA_SOURCE_URL }}"
steps:
@ -99,7 +99,7 @@ jobs:
- name: scale down deployment
continue-on-error: true
run: kubectl scale deployment ${{ steps.repo-url.outputs.repoName }} --replicas=0
run: kubectl scale deployment ${{ steps.repo-url.outputs.repoName }}-grpc --replicas=0
- name: scale up deployment
run: kubectl scale deployment ${{ steps.repo-url.outputs.repoName }} --replicas=1
run: kubectl scale deployment ${{ steps.repo-url.outputs.repoName }}-grpc --replicas=1

View File

@ -14,8 +14,4 @@ RUN go build -o bin/tgbuser \
FROM alpine AS runner
COPY --from=builder /app/bin/tgbuser /usr/bin/
WORKDIR /app
RUN apk --no-cache add --no-check-certificate ca-certificates \
&& update-ca-certificates
RUN apk add --no-cache tzdata
ENTRYPOINT /usr/bin/tgbuser

View File

@ -20,7 +20,7 @@ spec:
image: $IMAGE
env:
- name: ENV
value: "$ENV"
value: "$ENVIRONMET"
- name: NATS_SERVICE_URL
value: "$NATS_SERVICE_URL"
- name: DATA_SOURCE_URL
@ -29,7 +29,7 @@ spec:
value: "$APPLICATION_PORT"
volumeMounts:
- name: db
mountPath: "/app/tgbdb"
mountPath: "$DATA_SOURCE_URL"
volumes:
- name: db
persistentVolumeClaim: