From 44beaa9f2c8a3a9923106525e4aab640f45b9e1a Mon Sep 17 00:00:00 2001 From: glaszig Date: Fri, 26 Jul 2024 01:01:49 -0300 Subject: [PATCH] only push if push to master --- .github/workflows/ci.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06a38c0..15429cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,6 @@ name: ci -on: - push: - branches: - - master +on: push jobs: test: @@ -71,7 +68,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . - push: true + push: ${{ github.ref_name == 'master' }} tags: | glaszig/drone-capistrano:${{ matrix.ruby_version }} glaszig/drone-capistrano:${{ matrix.image_tag }}