Files
werf-actions/cleanup
Aleksei Igrychev 0980fb9532 feat: use Node.js v20
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
2024-02-14 15:30:21 +00:00
..
2024-02-14 15:30:21 +00:00
2023-01-20 11:54:59 +00:00

___

The action combines all the necessary steps in itself and logic may be divided into environment setup and launching werf cleanup.

Inputs

channel:
  description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
  default: 'alpha'
  required: false
version:
  description: 'The certain version'
  required: false
github-token:
  description: 'The GitHub token used to login and to interact with Docker Github Packages'
  default: ${{ github.token }}
  required: false
kube-config-base64-data:
  description: 'Base64 encoded kubeconfig data used for deployment, cleanup and distributed locks'
  required: false

Example

cleanup: 
  name: Cleanup
  runs-on: ubuntu-latest
  steps:
  
    - name: Checkout code
      uses: actions/checkout@v3

    - name: Fetch all history for all tags and branches
      run: git fetch --prune --unshallow

    - name: Cleanup
      uses: werf/actions/cleanup@v1.2
      with:
        kube-config-base64-data: ${{ secrets.KUBE_CONFIG_BASE64_DATA }}
      env:
        WERF_REPO_GITHUB_TOKEN: ${{ secrets.WERF_CLEANUP_PAM }}