67 lines (57 loc) · 1.64 KB
/
website_converge_tag.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Converge documentation
on:
push:
tags:
- 'v*'
- '!v1.1.*'
- '!v1.0.*'
env:
WERF_SET_ACTIVE_RELEASE: "global.active_release=1.2"
WERF_REPO: "ghcr.io/${{ github.repository_owner }}/werfio"
jobs:
converge:
name: Converge documentation to Production
runs-on: tfprod-werf
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set version name
id: value_set
run: |
echo "Version=$( echo $GITHUB_REF | cut -d\/ -f 3 | sed 's/\+/-plus-/' | sed 's/\_/-u-/')" >> $GITHUB_ENV
- name: Converge
uses: werf/actions/converge@v1.2
with:
env: production
env:
WERF_RELEASE: "werfio-${{ env.Version }}-production"
WERF_NAMESPACE: "werfio-production"
WERF_DIR: "docs"
WERF_LOG_VERBOSE: "on"
WERF_KUBE_CONTEXT: prod
WERF_SET_GITHUB_REF: "global.github_ref=${{ github.ref }}"
converge_test:
name: Converge documentation to Test
runs-on: tfprod-werf
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set version name
id: value_set
run: |
echo "Version=$( echo $GITHUB_REF | cut -d\/ -f 3 | sed 's/\+/-plus-/' | sed 's/\_/-u-/')" >> $GITHUB_ENV
- name: Converge
uses: werf/actions/converge@v1.2
with:
env: test
env:
WERF_RELEASE: "werfio-${{ env.Version }}-test"
WERF_NAMESPACE: "werfio-test"
WERF_DIR: "docs"
WERF_LOG_VERBOSE: "on"
WERF_KUBE_CONTEXT: dev
WERF_SET_GITHUB_REF: "global.github_ref=${{ github.ref }}"