feat: only publish docker img on master

This commit is contained in:
Aravinth Manivannan 2022-09-08 01:01:54 +05:30
parent c51df7daf2
commit d6fc9ad67f
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 6 additions and 3 deletions

View File

@ -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