Skip to content

Commit

Permalink
chore(ci): replace actions with steps (#283)
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Frolov <[email protected]>
  • Loading branch information
Fral738 authored Dec 16, 2024
1 parent 7d67a3e commit 6044af0
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 73 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/website_converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,18 @@ jobs:
with:
fetch-depth: 0

- name: Install werf
uses: werf/actions/install@v2

- name: Converge
uses: werf/actions/[email protected]
with:
env: production
kube-config-base64-data: ${{ secrets.KUBECONFIG_BASE64_PROD }}
run: |
. $(werf ci-env github --as-file)
werf converge
env:
WERF_DIR: "docs"
WERF_ENV: "production"
WERF_KUBE_CONFIG_BASE64: ${{ secrets.KUBECONFIG_BASE64_PROD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
notification:
name: Notification
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/website_review.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/website_review_dismiss.yml

This file was deleted.

13 changes: 9 additions & 4 deletions .github/workflows/website_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ jobs:
with:
fetch-depth: 0

- name: Install werf
uses: werf/actions/install@v2

- name: Converge
uses: werf/actions/[email protected]
with:
env: test
kube-config-base64-data: ${{ secrets.KUBECONFIG_BASE64_DEV }}
run: |
. $(werf ci-env github --as-file)
werf converge
env:
WERF_DIR: "docs"
WERF_ENV: "test"
WERF_KUBE_CONFIG_BASE64: ${{ secrets.KUBECONFIG_BASE64_DEV }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions docs/werf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project: trdl-web
configVersion: 1
---

artifact: asset
image: asset
from: jekyll/builder:3
fromCacheVersion: 20210426
shell:
Expand Down Expand Up @@ -41,9 +41,9 @@ shell:
{{ .Files.Get ".werf/nginx.conf" | indent 4 }}
EOF
import:
- artifact: asset
- image: asset
add: /srv/jekyll-data/_site
to: /app/
to: /app
before: setup
---
image: tuf-router
Expand Down

0 comments on commit 6044af0

Please sign in to comment.