Compare commits

...

4 Commits

Author SHA1 Message Date
c81483a3c4 ADD tz data
All checks were successful
${{ github.actor }} executed Build Push Prod / build (push) Successful in 4m23s
${{ github.actor }} executed Build Push Prod / deploy (push) Successful in 23s
2024-12-04 23:21:42 -04:00
895043c55c MODIFY env
All checks were successful
${{ github.actor }} executed Build Push Prod / build (push) Successful in 4m11s
${{ github.actor }} executed Build Push Prod / deploy (push) Successful in 22s
2024-12-04 21:32:11 -04:00
3e471eeead FIX env var
All checks were successful
dev test / test (push) Successful in 19s
dev test / vulnCheck (push) Successful in 27s
dev test / Ci-Lint (push) Successful in 43s
${{ github.actor }} executed Build Push Prod / build (push) Successful in 4m21s
${{ github.actor }} executed Build Push Prod / deploy (push) Successful in 23s
2024-12-04 21:24:46 -04:00
e11aa044a0 FIX TEMPLATE
Some checks failed
${{ github.actor }} executed Build Push Prod / build (push) Successful in 4m9s
${{ github.actor }} executed Build Push Prod / deploy (push) Failing after 23s
2024-12-04 20:09:19 -04:00
3 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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: