diff --git a/.github/workflows/trdl_publish.yml b/.github/workflows/trdl_publish.yml index 63d9974..569c173 100644 --- a/.github/workflows/trdl_publish.yml +++ b/.github/workflows/trdl_publish.yml @@ -1,8 +1,11 @@ name: trdl-publish on: push: + branches: + - main paths: - trdl_channels.yaml + workflow_dispatch: defaults: run: diff --git a/.github/workflows/trdl_releaser.yml b/.github/workflows/trdl_releaser.yml index ed3b60e..c236ccc 100644 --- a/.github/workflows/trdl_releaser.yml +++ b/.github/workflows/trdl_releaser.yml @@ -1,9 +1,9 @@ name: trdl-release on: - create: - -env: - PRIVATE_REPO_TOKEN: ${{ secrets.FOX_PRIVATE_TOKEN }} + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+*" + workflow_dispatch: permissions: contents: write @@ -12,14 +12,9 @@ jobs: release: if: ${{ startsWith(github.ref, 'refs/tags/v') }} name: Perform deckhouse-cli release using trdl server - runs-on: [self-hosted, regular] - container: - image: ubuntu:22.04 + runs-on: ubuntu-22.04 steps: - name: Release - env: - PRIVATE_REPO_TOKEN: ${{ secrets.FOX_PRIVATE_TOKEN }} - BLABLA: blabla uses: werf/trdl-vault-actions/release@main with: git-tag: ${{ github.event.ref }}