Embed the MAJOR.MINOR version and remove the group input

This commit is contained in:
Alexey Igrychev
2021-03-10 11:38:00 +00:00
parent da0172ca6e
commit 4dc23b175f
31 changed files with 87 additions and 174 deletions

View File

@@ -25,21 +25,20 @@ Each action combines all the necessary steps in itself and logic may be divided
### werf binary setup
By default, all actions setup actual werf version for [1.1 alpha channel](https://werf.io/releases.html) (more details about channels, werf release cycle and compatibility promise [here](https://github.com/werf/werf#backward-compatibility-promise)).
Using `group` and `channel` inputs the user can switch the release channel.
Using the `channel` input the user can switch the release channel.
> This is recommended approach to be up-to-date and to use actual werf version without changing configurations
```yaml
- uses: werf/actions/converge@master
- uses: werf/actions/converge@v1.1
with:
group: 1.1
channel: alpha
```
Withal, it is not necessary to work within release channels, and the user might specify certain werf version with `version` input.
```yaml
- uses: werf/actions/converge@master
- uses: werf/actions/converge@v1.1
with:
version: v1.1.16
```
@@ -53,7 +52,7 @@ The _kubeconfig_ may be used for deployment, cleanup, distributed locks and cach
* Pass secret with `kube-config-base64-data` input:
```yaml
- uses: werf/actions/build-and-publish@master
- uses: werf/actions/build-and-publish@v1.1
with:
kube-config-base64-data: ${{ secrets.KUBE_CONFIG_BASE64_DATA }}
```
@@ -71,7 +70,7 @@ By default, action will use the token provided to your workflow.
Any werf option can be defined with environment variables:
```yaml
- uses: werf/actions/build-and-publish@master
- uses: werf/actions/build-and-publish@v1.1
env:
WERF_LOG_VERBOSE: "on"
WERF_TAG_CUSTOM_TAG1: tag1
@@ -94,7 +93,7 @@ converge:
fetch-depth: 0
- name: Converge
uses: werf/actions/converge@master
uses: werf/actions/converge@v1.1
with:
env: production
kube-config-base64-data: ${{ secrets.KUBE_CONFIG_BASE64_DATA }}
@@ -114,7 +113,7 @@ build-and-publish:
fetch-depth: 0
- name: Build and Publish
uses: werf/actions/build-and-publish@master
uses: werf/actions/build-and-publish@v1.1
with:
kube-config-base64-data: ${{ secrets.KUBE_CONFIG_BASE64_DATA }}
@@ -130,7 +129,7 @@ deploy:
fetch-depth: 0
- name: Deploy
uses: werf/actions/deploy@master
uses: werf/actions/deploy@v1.1
with:
env: production
kube-config-base64-data: ${{ secrets.KUBE_CONFIG_BASE64_DATA }}
@@ -148,7 +147,7 @@ dismiss:
uses: actions/checkout@v2
- name: Dismiss
uses: werf/actions/dismiss@master
uses: werf/actions/dismiss@v1.1
with:
kube-config-base64-data: ${{ secrets.KUBE_CONFIG_BASE64_DATA }}
env: production
@@ -168,7 +167,7 @@ run:
fetch-depth: 0
- name: Run
uses: werf/actions/run@master
uses: werf/actions/run@v1.1
with:
image: backend
args: rails server
@@ -192,7 +191,7 @@ cleanup:
run: git fetch --prune --unshallow
- name: Cleanup
uses: werf/actions/cleanup@master
uses: werf/actions/cleanup@v1.1
with:
kube-config-base64-data: ${{ secrets.KUBE_CONFIG_BASE64_DATA }}
```
@@ -206,10 +205,10 @@ werf:
steps:
- name: Checkout code
uses: actions/checkout@master
uses: actions/checkout@v1.1
- name: Install werf CLI
uses: werf/actions/install@master
uses: werf/actions/install@v1.1
# for deploy and distributed locks
- name: Create kube config