Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci update #27

Merged
merged 2 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ jobs:
- name: Run Build
run: |
. $(werf ci-env github --as-file)
werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA
echo "${{ secrets.STAGE_ENV }}" > .env
werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA --dev
16 changes: 12 additions & 4 deletions werf.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
configVersion: 1
project: "web-client"
---
image: web
image: builder
from: node:16-alpine
docker:
WORKDIR: /frontend
ENTRYPOINT: ["yarn", "dev"]
git:
- add: /
to: /frontend
Expand All @@ -26,3 +23,14 @@ shell:
setup:
- cd /frontend
- yarn generate
---
image: web
from: nginx:alpine
git:
- add: /nginx.conf
to: /etc/nginx/nginx.conf
import:
- image: builder
add: /frontend/.output/public
to: /usr/share/nginx/html
after: setup