diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4e1170a..971a627 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,9 +24,9 @@ jobs: - name: Build and push backend docker image run: | - docker build . --tag docker.pkg.github.com/wahyd4/say-it/say-it:v0.1.$GITHUB_RUN_NUMBER + docker build . --tag docker.pkg.github.com/wahyd4/say-it-backend/say-it:v0.1.$GITHUB_RUN_NUMBER docker login docker.pkg.github.com -u wahyd4 -p ${{ secrets.GITHUB_TOKEN }} - docker push docker.pkg.github.com/wahyd4/say-it/say-it:v0.1.$GITHUB_RUN_NUMBER + docker push docker.pkg.github.com/wahyd4/say-it-backend/say-it:v0.1.$GITHUB_RUN_NUMBER - name: deploy deployment to cluster uses: wahyd4/kubectl-helm-action@master env: diff --git a/manifest.yaml b/manifest.yaml index ee3569d..0f94341 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -14,25 +14,17 @@ spec: spec: containers: - name: say-it - image: "docker.pkg.github.com/wahyd4/say-it/say-it:{{IMAGE_VERSION}}" + image: "docker.pkg.github.com/wahyd4/say-it-backend/say-it:{{IMAGE_VERSION}}" securityContext: runAsUser: 1000 imagePullPolicy: Always env: - - name: DB_HOST - value: postgres-postgresql.db.svc.cluster.local - - name: DB_NAME - value: badges - - name: DB_USERNAME - value: postgres - - name: DB_PASSWORD + - name: CLIENT_ID valueFrom: - { secretKeyRef: { name: database-credentials, key: password } } - - name: DB_PORT - value: "5432" - - name: SENTRY_DSN + { secretKeyRef: { name: say-it-credentials, key: clientId } } + - name: CLIENT_SECRET valueFrom: - { secretKeyRef: { name: sentry-credentials, key: dsn } } + { secretKeyRef: { name: say-it-credentials, key: clientSecret } } ports: - containerPort: 8080 name: say-it-port