Skip to content

trdl-release

trdl-release #21

Workflow file for this run

name: trdl-release
on:
create:
env:
PRIVATE_REPO_TOKEN: ${{ secrets.FOX_PRIVATE_TOKEN }}
jobs:
release:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
name: Perform deckhouse-cli release using trdl server
runs-on: ubuntu-latest
steps:
- name: Install dependency for linux-amd64 dist
env:
DEBIAN_FRONTEND: noninteractive
run: apt-get update && apt-get install -y apt-utils libbtrfs-dev file git gcc
- name: Setup Task
uses: arduino/setup-task@v2
- name: Setup git
run: |
git config --global url."https://gitlab-ci-token:${PRIVATE_REPO_TOKEN}@${PRIVATE_REPO}/".insteadOf https://${PRIVATE_REPO}/
git config --global --add safe.directory '*'
- name: Release
uses: werf/trdl-vault-actions/release@main
with:
git-tag: ${{ github.event.ref }}
vault-addr: ${{ secrets.TRDL_VAULT_ADDR }}
project-name: deckhouse-cli
vault-auth-method: approle
vault-role-id: ${{ secrets.TRDL_VAULT_ROLE_ID }}
vault-secret-id: ${{ secrets.TRDL_VAULT_SECRET_ID }}