Skip to content
Permalink
Browse files

chore(gh-ci): Publish on release only (#1662)

  • Loading branch information
kilchenmann committed Jun 24, 2020
1 parent 24db3bf commit 787dca823c80bdeb485b134623b1f033020d3e6d
Showing with 7 additions and 4 deletions.
  1. +7 −4 .github/workflows/main.yml
@@ -1,6 +1,9 @@
name: CI

on: [push]
on:
push:
release:
types: [published]

env:
KNORA_GDB_LICENSE: ${{ github.workspace }}/ci/graphdb/UNIBAS_DEV_GRAPHDB_SE_latest-31-12-2020_1cores.license
@@ -257,9 +260,9 @@ jobs:
df -h
docker system df
# publish only for develop and tags
# publish only on release
publish:
name: Publish to Dockerhub
name: Publish to Dockerhub (on release only)
needs: [
api-unit-tests,
api-e2e-tests,
@@ -268,7 +271,7 @@ jobs:
docs-build-test
]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags')
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v1
with:

0 comments on commit 787dca8

Please sign in to comment.