From 5ee151c4f139651089f87a7761b25b3cee1ae187 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 }}