Skip to content

Commit

Permalink
Merge pull request #38 from ATOR-Development/leggo/phase-1/dev
Browse files Browse the repository at this point in the history
update the commit hash to NUXT_PUBLIC_COMMIT_HASH
  • Loading branch information
MarcoMandar authored Jun 22, 2024
2 parents 42bcd19 + 643c98b commit 438362e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fetch-depth: 0

- name: Set up environment variables
run: echo "COMMIT_HASH=${{ github.sha }}" >> $GITHUB_ENV
run: echo "NUXT_PUBLIC_COMMIT_HASH=${{ github.sha }}" >> $GITHUB_ENV

- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ FROM node:18.16-alpine As build
RUN apk add git python3 make g++

# Accept build argument
ARG COMMIT_HASH
ARG NUXT_PUBLIC_COMMIT_HASH

# Set environment variable
ENV COMMIT_HASH=${COMMIT_HASH}
ENV NUXT_PUBLIC_COMMIT_HASH=${NUXT_PUBLIC_COMMIT_HASH}

RUN npm install -g pnpm

Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default defineNuxtConfig({
phase: 'dev',
supportWalletPublicKeyBase64:
'K3jnSGVyHj4kSzgce3+k8gJsfHvUoQeJMNPO8CcsO2s=',
commitHash: process.env.COMMIT_HASH || 'dev',
commitHash: process.env.NUXT_PUBLIC_COMMIT_HASH || 'dev',
},
},
plugins: [{ src: '~/plugins/vue-query.client.ts', mode: 'client' }],
Expand Down

0 comments on commit 438362e

Please sign in to comment.