Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed May 16, 2024
1 parent 75157b4 commit 67c68c0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
echo $GITHUB_SHA
- name: Run Build
env: # Or as an environment variable
VITE_MODE: 'development'
VITE_MODE: development
run: |
. $(werf ci-env github --as-file)
werf export --dev web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA
werf export --dev web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA --set-parameter viteMode=${{ env.VITE_MODE }}
6 changes: 3 additions & 3 deletions .github/workflows/actions_onlymain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
echo $GITHUB_REPOSITORY
echo $GITHUB_SHA
- name: Run Build
#env: # Or as an environment variable
#VITE_MODE: 'staging'
env: # Or as an environment variable
VITE_MODE: staging
run: |
. $(werf ci-env github --as-file)
werf export --dev web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA
werf export --dev web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA --set-parameter viteMode=${{ env.VITE_MODE }}
# deploy:
# name: Deploy
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
- name: Run Build
env: # Or as an environment variable
VITE_MODE: 'production'
VITE_MODE: production
run: |
. $(werf ci-env github --as-file)
werf export --dev web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME
werf export --dev web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME --set-parameter viteMode=${{ env.VITE_MODE }}
# deploy:
# name: Deploy
Expand Down
2 changes: 1 addition & 1 deletion werf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ shell:
- yarn install
setup:
- cd /app
- yarn build
- if [ -n "{{ .Values.viteMode }}" ]; then yarn build --mode {{ .Values.viteMode }}; else yarn build; fi
#- sh -c '[ -d /app/dist/files ] && echo "$FILE exist." || mkdir -p /app/dist/files'
#- sh -c '[ -d /app/files ] && echo "$FILE exist." || mkdir -p /app/files'
#- sh -c '[ -z "`ls /app/files`" ] && echo "Empty" || cp -r /app/files/* /app/dist/files'
Expand Down

0 comments on commit 67c68c0

Please sign in to comment.