Skip to content

Commit

Permalink
feat: pass git sha or version into the docker
Browse files Browse the repository at this point in the history
  • Loading branch information
grixu committed Jun 24, 2024
1 parent a558bd3 commit 883d328
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-frontend/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ runs:
password: ${{ inputs.cloud_password }}
dockerfile: .vuestorefrontcloud/docker/nextjs/Dockerfile-frontend
buildoptions: --compress
buildargs: NPM_EMAIL,NPM_PASS,NPM_USER,NPM_REGISTRY
buildargs: NPM_EMAIL,NPM_PASS,NPM_USER,NPM_REGISTRY,GIT_SHA
env:
NPM_EMAIL: ${{ inputs.npm_email }}
NPM_PASS: ${{ inputs.npm_pass }}
NPM_USER: ${{ inputs.npm_user }}
NPM_REGISTRY: ${{ inputs.npm_registry }}
GIT_SHA: ${{ inputs.version || github.sha }}

- name: Build and publish docker image (Nuxt frontend)
if: ${{ inputs.frontend == 'nuxt' }}
Expand All @@ -84,9 +85,10 @@ runs:
password: ${{ inputs.cloud_password }}
dockerfile: .vuestorefrontcloud/docker/nuxtjs/Dockerfile-frontend
buildoptions: --compress
buildargs: NPM_EMAIL,NPM_PASS,NPM_USER,NPM_REGISTRY
buildargs: NPM_EMAIL,NPM_PASS,NPM_USER,NPM_REGISTRY,GIT_SHA
env:
NPM_EMAIL: ${{ inputs.npm_email }}
NPM_PASS: ${{ inputs.npm_pass }}
NPM_USER: ${{ inputs.npm_user }}
NPM_REGISTRY: ${{ inputs.npm_registry }}
GIT_SHA: ${{ inputs.version || github.sha }}

0 comments on commit 883d328

Please sign in to comment.