From 3a2f42a579050ccd646ce17655c6b636a86e1cf4 Mon Sep 17 00:00:00 2001 From: lukachi Date: Thu, 16 May 2024 18:35:58 +0300 Subject: [PATCH] remove mode temp. --- .github/workflows/actions_onlymain.yml | 32 +++++++++++++------------- .github/workflows/tag.yml | 32 +++++++++++++------------- werf.yaml | 5 ++-- 3 files changed, 35 insertions(+), 34 deletions(-) diff --git a/.github/workflows/actions_onlymain.yml b/.github/workflows/actions_onlymain.yml index c69d169..f06dd2f 100644 --- a/.github/workflows/actions_onlymain.yml +++ b/.github/workflows/actions_onlymain.yml @@ -34,19 +34,19 @@ jobs: . $(werf ci-env github --as-file) werf export --dev web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA - deploy: - name: Deploy - needs: converge - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: ConfigCreate - run: | - mkdir ~/.kube/ - echo "${{ secrets.K8SCONFIG_DEV }}" | base64 -d > config - mv config ~/.kube/ -# TODO: change this -# kubectl set image deployment [my-name-web] template=ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA -n [my-name] +# deploy: +# name: Deploy +# needs: converge +# runs-on: ubuntu-latest +# steps: +# - name: Checkout code +# uses: actions/checkout@v3 +# with: +# fetch-depth: 0 +# - name: ConfigCreate +# run: | +# mkdir ~/.kube/ +# echo "${{ secrets.K8SCONFIG_DEV }}" | base64 -d > config +# mv config ~/.kube/ +## TODO: change this +## kubectl set image deployment [my-name-web] template=ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA -n [my-name] diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 14f1795..86c6c55 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -35,19 +35,19 @@ jobs: . $(werf ci-env github --as-file) werf export --dev web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME - deploy: - name: Deploy - needs: converge - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: ConfigCreate - run: | - mkdir ~/.kube/ - echo "${{ secrets.K8SCONFIG_MAIN }}" | base64 -d > config - mv config ~/.kube/ -# TODO: change this -# kubectl set image deployment [my-name-web] template=ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME -n [my-name] +# deploy: +# name: Deploy +# needs: converge +# runs-on: ubuntu-latest +# steps: +# - name: Checkout code +# uses: actions/checkout@v3 +# with: +# fetch-depth: 0 +# - name: ConfigCreate +# run: | +# mkdir ~/.kube/ +# echo "${{ secrets.K8SCONFIG_MAIN }}" | base64 -d > config +# mv config ~/.kube/ +## TODO: change this +## kubectl set image deployment [my-name-web] template=ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME -n [my-name] diff --git a/werf.yaml b/werf.yaml index d7cda7e..a6f16dc 100644 --- a/werf.yaml +++ b/werf.yaml @@ -22,8 +22,9 @@ shell: - yarn install setup: - cd /app - - export VITE_MODE="{{ env "VITE_MODE" }}" - - if [ -n "$VITE_MODE" ]; then yarn build --mode $VITE_MODE; else yarn build; fi + #- export VITE_MODE="{{ env "VITE_MODE" }}" + #- if [ -n "$VITE_MODE" ]; then yarn build --mode $VITE_MODE; else yarn build; fi + - yarn build #- 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'