From 429f29dfc705878b91e28b9bfd1bc0671fcd9412 Mon Sep 17 00:00:00 2001 From: Vitaliy Potyarkin Date: Thu, 29 Aug 2024 15:17:28 +0300 Subject: [PATCH] deploy: Only from master Signed-off-by: Vitaliy Potyarkin --- .forgejo/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 4bc8def..d02bcdd 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -36,7 +36,7 @@ jobs: curl -v --head frostfs.info - name: Setup SSH environment - # TODO: add deploy conditions + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} env: SSH_AUTH_SOCK: /tmp/ssh_agent.socket run: | @@ -52,9 +52,9 @@ jobs: rm ~/.ssh/key - name: make deploy + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} run: | ssh-add -L make deploy - # TODO: add deploy conditions env: SSH_AUTH_SOCK: /tmp/ssh_agent.socket