Fix make file

Add clean ios step
This commit is contained in:
Jonas Franz 2018-09-23 16:45:25 +02:00
parent 3c53045598
commit fa5d3eba44
No known key found for this signature in database
GPG Key ID: C8287A01D593AC1D
2 changed files with 15 additions and 6 deletions

View File

@ -48,8 +48,6 @@ pipeline:
- make build-ios-all
- mkdir ipas
- mv build/app/out
- cd ..
- rm -rf /tmp/drone_build_${DRONE_BUILD_NUMBER}
when:
event: [ push, tag]
@ -81,3 +79,14 @@ pipeline:
when:
event: [ push ]
branch: [ master ]
clean_ios:
image: appleboy/drone-ssh
host: home.jonasfranz.software
port: 1413
secrets: [ ssh_username, ssh_key ]
script:
- rm -rf /tmp/drone_build_${DRONE_BUILD_NUMBER}
when:
status: [ failure, success ]
event: [ push, tag]

View File

@ -30,16 +30,16 @@ build-profile:
flutter build apk --profile --build-name=$(VERSION)
.PHONY: build-ios-all
build-all: build-ios-release build-ios-debug build-ios-profile
build-ios-all: build-ios-release build-ios-debug build-ios-profile
.PHONY: build-ios-release
build-release:
build-ios-release:
flutter build ios --release --build-name=$(VERSION)
.PHONY: build-ios-debug
build-debug:
build-ios-debug:
flutter build ios --debug --build-name=$(VERSION)
.PHONY: build-ios-profile
build-profile:
build-ios-profile:
flutter build ios --profile --build-name=$(VERSION)