mirror of
https://github.com/werf/actions.git
synced 2026-02-05 10:56:23 +03:00
Compare commits
5 Commits
dependabot
...
v2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ad28e741a | ||
|
|
b3b83d531c | ||
|
|
f3a12bd69b | ||
|
|
af48145692 | ||
|
|
4cd91e1efe |
36
README.md
36
README.md
@@ -5,7 +5,7 @@ ___
|
||||
|
||||
This action allows you to organize CI/CD with GitHub Actions and [werf](https://github.com/werf/werf).
|
||||
|
||||
**Ready-to-use GitHub Actions Workflows** for different CI/CD workflows are available [here](https://werf.io/guides/nodejs/400_ci_cd_workflow/040_github_actions.html).
|
||||
**Ready-to-use GitHub Actions Workflows** for different CI/CD workflows are available [here](https://werf.io/getting_started/?usage=ci&ci=githubActions&runnerType=hostRunner&os=linux&buildBackend=buildah&projectType=simplified&sharedCICD=no&repoType=application).
|
||||
|
||||
## How to use
|
||||
|
||||
@@ -106,6 +106,40 @@ converge:
|
||||
|
||||
In the simplest case, if an [integrated GitHub Packages-like container registry](https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-docker-for-use-with-github-packages) is used, then the authorization is performed automatically when the `werf ci-env` command is invoked. This command is run with several required arguments such as GitHub environment variables, the [`GITHUB_TOKEN` secret](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#about-the-github_token-secret) (you have to explicitly declare it).
|
||||
|
||||
### Building multi-platform images
|
||||
|
||||
To build multi-platform images or customize the build environment, you can use [docker/setup-buildx-action@v3](https://github.com/docker/setup-buildx-action).
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Install werf
|
||||
uses: werf/actions/install@v2
|
||||
|
||||
- name: cr login
|
||||
run: werf cr login -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_TOKEN }} registry.example.com
|
||||
|
||||
- name: converge
|
||||
run: |
|
||||
. $(werf ci-env github --as-file)
|
||||
werf converge
|
||||
env:
|
||||
WERF_KUBECONFIG_BASE64: ${{ secrets.KUBE_CONFIG_BASE64_DATA }}
|
||||
WERF_ENV: production
|
||||
```
|
||||
|
||||
> No additional configuration is required, and QEMU is automatically used for cross-platform builds.
|
||||
|
||||
## License
|
||||
|
||||
Apache License 2.0, see [LICENSE](LICENSE)
|
||||
|
||||
@@ -7,7 +7,7 @@ branding:
|
||||
inputs:
|
||||
channel:
|
||||
description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
|
||||
default: 'alpha'
|
||||
default: 'stable'
|
||||
required: false
|
||||
version:
|
||||
description: 'The certain version'
|
||||
|
||||
@@ -10,7 +10,7 @@ The action combines all the necessary steps in itself and logic may be divided i
|
||||
```yaml
|
||||
channel:
|
||||
description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
|
||||
default: 'alpha'
|
||||
default: 'stable'
|
||||
required: false
|
||||
version:
|
||||
description: 'The certain version'
|
||||
|
||||
@@ -7,7 +7,7 @@ branding:
|
||||
inputs:
|
||||
channel:
|
||||
description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
|
||||
default: 'alpha'
|
||||
default: 'stable'
|
||||
required: false
|
||||
version:
|
||||
description: 'The certain version'
|
||||
|
||||
@@ -10,7 +10,7 @@ The action combines all the necessary steps in itself and logic may be divided i
|
||||
```yaml
|
||||
channel:
|
||||
description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
|
||||
default: 'alpha'
|
||||
default: 'stable'
|
||||
required: false
|
||||
version:
|
||||
description: 'The certain version'
|
||||
|
||||
@@ -7,7 +7,7 @@ branding:
|
||||
inputs:
|
||||
channel:
|
||||
description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
|
||||
default: 'alpha'
|
||||
default: 'stable'
|
||||
required: false
|
||||
version:
|
||||
description: 'The certain version'
|
||||
|
||||
@@ -10,7 +10,7 @@ The action combines all the necessary steps in itself and logic may be divided i
|
||||
```yaml
|
||||
channel:
|
||||
description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
|
||||
default: 'alpha'
|
||||
default: 'stable'
|
||||
required: false
|
||||
version:
|
||||
description: 'The certain version'
|
||||
|
||||
@@ -7,7 +7,7 @@ branding:
|
||||
inputs:
|
||||
channel:
|
||||
description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
|
||||
default: 'alpha'
|
||||
default: 'stable'
|
||||
required: false
|
||||
version:
|
||||
description: 'The certain version'
|
||||
|
||||
@@ -10,7 +10,7 @@ The action combines all the necessary steps in itself and logic may be divided i
|
||||
```yaml
|
||||
channel:
|
||||
description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
|
||||
default: 'alpha'
|
||||
default: 'stable'
|
||||
required: false
|
||||
version:
|
||||
description: 'The certain version'
|
||||
|
||||
@@ -7,7 +7,7 @@ branding:
|
||||
inputs:
|
||||
channel:
|
||||
description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
|
||||
default: 'alpha'
|
||||
default: 'stable'
|
||||
required: false
|
||||
version:
|
||||
description: 'The certain version'
|
||||
|
||||
@@ -27,7 +27,7 @@ Withal, it is not necessary to work within release channels, and the user might
|
||||
```yaml
|
||||
channel:
|
||||
description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
|
||||
default: 'alpha'
|
||||
default: 'stable'
|
||||
required: false
|
||||
version:
|
||||
description: 'The certain version'
|
||||
|
||||
@@ -7,7 +7,7 @@ branding:
|
||||
inputs:
|
||||
channel:
|
||||
description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
|
||||
default: 'alpha'
|
||||
default: 'stable'
|
||||
required: false
|
||||
version:
|
||||
description: 'The certain version'
|
||||
|
||||
@@ -11,7 +11,7 @@ The action combines all the necessary steps in itself and logic may be divided i
|
||||
inputs:
|
||||
channel:
|
||||
description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
|
||||
default: 'alpha'
|
||||
default: 'stable'
|
||||
required: false
|
||||
version:
|
||||
description: 'The certain version'
|
||||
|
||||
@@ -7,7 +7,7 @@ branding:
|
||||
inputs:
|
||||
channel:
|
||||
description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
|
||||
default: 'alpha'
|
||||
default: 'stable'
|
||||
required: false
|
||||
version:
|
||||
description: 'The certain version'
|
||||
|
||||
Reference in New Issue
Block a user