Skip to content

Commit

Permalink
ci(github): add prod and dev image build steps to GHCR workflow build…
Browse files Browse the repository at this point in the history
…_image
  • Loading branch information
brucetony committed Aug 19, 2024
1 parent 8d0de17 commit cac81b8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build-push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,15 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=sha
- name: Build and push Docker image
- name: Build and push development Docker image
uses: docker/build-push-action@v5
with:
file: ./Dockerfile
push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }},ghcr.io/privateaim/node-ui:dev,ghcr.io/privateaim/node-ui:latest
labels: ${{ steps.meta.outputs.labels }}
- name: Build and push production Docker image
uses: docker/build-push-action@v5
with:
file: ./prod.Dockerfile
Expand Down
17 changes: 8 additions & 9 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,18 @@ export default defineNuxtConfig({
clientSecret: process.env
.NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_SECRET as string,
redirectUri:
process.env.NUXT_PUBLIC_BASE_URL + "/auth/keycloak/callback" ||
process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_REDIRECT_URI,
// The auth is different since that is accessed via a frontend client
process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_REDIRECT_URI ||
process.env.NUXT_PUBLIC_BASE_URL + "/auth/keycloak/callback",
authorizationUrl:
process.env.KEYCLOAK_LOGIN_URL + "/protocol/openid-connect/auth" ||
process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_AUTHORIZATION_URL,
process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_AUTHORIZATION_URL ||
process.env.KEYCLOAK_LOGIN_URL + "/protocol/openid-connect/auth",
tokenUrl:
process.env.KEYCLOAK_SERVICE_URL + "/protocol/openid-connect/token" ||
process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_TOKEN_URL,
process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_TOKEN_URL ||
process.env.KEYCLOAK_SERVICE_URL + "/protocol/openid-connect/token",
userinfoUrl:
process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_USERINFO_URL ||
process.env.KEYCLOAK_SERVICE_URL +
"/protocol/openid-connect/userinfo" ||
process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_USERINFO_URL,
"/protocol/openid-connect/userinfo",
exposeAccessToken: true,
pkce: false,
},
Expand Down

0 comments on commit cac81b8

Please sign in to comment.