Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c81483a3c4 | |||
| 895043c55c | |||
| 3e471eeead | |||
| e11aa044a0 |
6
.github/workflows/image_creation.yml
vendored
6
.github/workflows/image_creation.yml
vendored
@ -58,7 +58,7 @@ jobs:
|
||||
USERNAME: ${{ vars.USERNAME }}
|
||||
TAG_VERSION: ${{ github.ref_name }}
|
||||
NATS_SERVICE_URL: "${{ vars.NATS_SERVICE_URL }}"
|
||||
ENV: "production"
|
||||
ENV: "${{ vars.ENVIRONMENT }}"
|
||||
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 }}-grpc --replicas=0
|
||||
run: kubectl scale deployment ${{ steps.repo-url.outputs.repoName }} --replicas=0
|
||||
|
||||
- name: scale up deployment
|
||||
run: kubectl scale deployment ${{ steps.repo-url.outputs.repoName }}-grpc --replicas=1
|
||||
run: kubectl scale deployment ${{ steps.repo-url.outputs.repoName }} --replicas=1
|
||||
|
||||
@ -14,4 +14,8 @@ 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
|
||||
|
||||
@ -20,7 +20,7 @@ spec:
|
||||
image: $IMAGE
|
||||
env:
|
||||
- name: ENV
|
||||
value: "$ENVIRONMET"
|
||||
value: "$ENV"
|
||||
- name: NATS_SERVICE_URL
|
||||
value: "$NATS_SERVICE_URL"
|
||||
- name: DATA_SOURCE_URL
|
||||
@ -29,7 +29,7 @@ spec:
|
||||
value: "$APPLICATION_PORT"
|
||||
volumeMounts:
|
||||
- name: db
|
||||
mountPath: "$DATA_SOURCE_URL"
|
||||
mountPath: "/app/tgbdb"
|
||||
volumes:
|
||||
- name: db
|
||||
persistentVolumeClaim:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user