Skip to content

Commit

Permalink
Use promotion to trigger a release
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Dec 6, 2021
1 parent 432ed8c commit a6fb39a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ steps:
nvm install 14
npm install -g bower grunt
sbt -Duser.home=$PWD test:compile test Universal/packageBin
when:
event:
exclude: [promote]

# Build packages
- name: build-packages
Expand Down Expand Up @@ -61,7 +64,7 @@ steps:
mv target/rpm/RPMS/noarch/thehive*.rpm target/
mv target/universal/thehive*.zip target/
when:
event: [tag]
event: [promote]

# Save external libraries in cache
- name: save-cache
Expand Down Expand Up @@ -91,7 +94,7 @@ steps:
- target/thehive*.zip
strip_components: 1
when:
event: [tag]
event: [promote]

# Publish packages
- name: publish packages
Expand All @@ -104,7 +107,7 @@ steps:
commands:
- PLUGIN_SCRIPT="bash $PLUGIN_PUBLISH_SCRIPT thehive4 $(cat thehive-version.txt)" /bin/drone-ssh
when:
event: [tag]
event: [promote]

# Publish docker image on Docker Hub
- name: docker
Expand All @@ -116,7 +119,7 @@ steps:
username: {from_secret: docker_username}
password: {from_secret: docker_password}
when:
event: [tag]
event: [promote]

# Publish docker image on Harbor
# - name: harbor
Expand Down

0 comments on commit a6fb39a

Please sign in to comment.