Skip to content

Commit

Permalink
remove mode temp.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed May 16, 2024
1 parent 053ba25 commit 3a2f42a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 34 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/actions_onlymain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
32 changes: 16 additions & 16 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
5 changes: 3 additions & 2 deletions werf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 3a2f42a

Please sign in to comment.