Add step to be executed on tagged build.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
19
.drone.yml
19
.drone.yml
@@ -25,15 +25,28 @@ steps:
|
|||||||
- ./gradlew assembleDebug
|
- ./gradlew assembleDebug
|
||||||
- ./gradlew bundleRelease
|
- ./gradlew bundleRelease
|
||||||
|
|
||||||
- name: deploy laatest buuild
|
- name: deploy latest build
|
||||||
image: busybox
|
image: busybox
|
||||||
volumes:
|
volumes:
|
||||||
- name: deploy
|
- name: deploy
|
||||||
path: /tmp/deploy
|
path: /tmp/deploy
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p /tmp/deploy/lastBuild
|
- mkdir -p /tmp/deploy/lastBuild
|
||||||
- cp ./app/build/outputs/apk/debug/app-debug.apk /tmp/deploy/lastBuild/app-debug.apk
|
- cp ./app/build/outputs/apk/debug/app-debug.apk /tmp/deploy/lastBuild/app-debug_latest.apk
|
||||||
- cp ./app/build/outputs/bundle/release/app-release.aab /tmp/deploy/lastBuild/app-release.aab
|
- cp ./app/build/outputs/bundle/release/app-release.aab /tmp/deploy/lastBuild/app-release_latest.aab
|
||||||
|
|
||||||
|
- name: deploy tagged build
|
||||||
|
image: busybox
|
||||||
|
volumes:
|
||||||
|
- name: deploy
|
||||||
|
path: /tmp/deploy
|
||||||
|
commands:
|
||||||
|
- mkdir -p /tmp/deploy/tagged/$DRONE_TAG
|
||||||
|
- cp ./app/build/outputs/apk/debug/app-debug.apk /tmp/deploy/tagged/$DRONE_TAG/app-debug_$DRONE_TAG.apk
|
||||||
|
- cp ./app/build/outputs/bundle/release/app-release.aab /tmp/deploy/tagged/$DRONE_TAG/app-release_$DRONE_TAG.aab
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
- name: slack notification
|
- name: slack notification
|
||||||
image: plugins/slack
|
image: plugins/slack
|
||||||
|
|||||||
Reference in New Issue
Block a user