From d6fc9ad67f5171479eec36d02edf8b18880b8ece Mon Sep 17 00:00:00 2001 From: realaravinth Date: Thu, 8 Sep 2022 01:01:54 +0530 Subject: [PATCH] feat: only publish docker img on master --- .github/workflows/linux.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index e8cab39..4eb97d9 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -7,7 +7,7 @@ on: branches: - master - "*" - - '!gh-pages' + - "!gh-pages" jobs: build_and_test: @@ -34,7 +34,6 @@ jobs: target key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - name: configure GPG key if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/librepages' run: echo -n "$RELEASE_BOT_GPG_SIGNING_KEY" | gpg --batch --import --pinentry-mode loopback @@ -61,7 +60,11 @@ jobs: - name: run tests run: make test - - name: build and publish docker images + - name: make docker images + run: make docker + + - name: publish docker images + if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/librepages' run: make docker-publish - name: publish bins