Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish on release only #1662

Merged
merged 1 commit into from Jun 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 7 additions & 4 deletions .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
Expand Down Expand Up @@ -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,
Expand All @@ -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:
Expand Down