From 7c02ae399f68cc48ae7f5f1f43bfbe5cdb7c12e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=C4=9Bzslav=20K=C5=99=C3=AD=C5=BE?= <49568741+sprtokiller@users.noreply.github.com> Date: Fri, 27 Oct 2023 14:11:02 +0200 Subject: [PATCH] Added restriction for main branch --- .github/workflows/pipeline.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 2dc16bd..cd63402 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -1,6 +1,9 @@ name: Build and push to TdA -on: [push] +on: + push: + branches: + - main jobs: build: @@ -18,11 +21,11 @@ jobs: with: context: ./ tags: tda-nette:latest - outputs: type=docker,dest=/tmp/tda-laravel.tar + outputs: type=docker,dest=/tmp/tda-nette.tar - name: Upload to TdA uses: Tour-de-App/upload-app@tda-24 with: team_secret: ${{ secrets.TEAM_SECRET }} image_name: tda-nette - image_path: /tmp/tda-laravel.tar + image_path: /tmp/tda-nette.tar