mirror of
https://github.com/go-vikunja/app
synced 2025-01-26 01:26:04 +00:00
JonasFranz
e371c55a52
Remove pipeline for feature/ios Merge branch 'master' of ssh://git.kolaente.de:9022/vikunja/app into feature/ios Fix CI Add keychain pw ensure keychain Disable code signing while building Fix CI Merge branch 'feature/ios' of ssh://git.kolaente.de:9022/vikunja/app into feature/ios Add keychain password Merge branch 'master' into feature/ios Add compliance Add secrets Remove build app step Use other version Set Utf8 Fix CI Fix CI Fix beta deployment Add deploy step Fix CI Fix CI Fix ci fix ci fix ci test ci fix ci Fix keychain Fix keychain Use custom keychain Add security unlock Add MATCH_PASSWORD Add match Add fastlane Add ios pipeline to build Add ios pipeline to build Co-authored-by: Jonas Franz <info@jonasfranz.software> Co-authored-by: Buildslave <buildslave@macmini.fritz.box> Reviewed-on: vikunja/app#42 Reviewed-by: konrad <konrad@kola-entertainments.de>
178 lines
3.7 KiB
YAML
178 lines
3.7 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: testing
|
|
|
|
workspace:
|
|
base: /home/cirrus/app
|
|
|
|
clone:
|
|
depth: 50
|
|
|
|
# Only run on prs or pushes to master
|
|
trigger:
|
|
branch:
|
|
include:
|
|
- master
|
|
event:
|
|
include:
|
|
- push
|
|
- pull_request
|
|
|
|
steps:
|
|
- name: build
|
|
image: cirrusci/flutter:stable
|
|
pull: true
|
|
commands:
|
|
- sudo chown cirrus . -R # The clone step clones everything as root, this is our "fix" until we find a better solution
|
|
- flutter packages get
|
|
- make format-check
|
|
- make build-debug
|
|
|
|
# Don't run tests until we have to not break the pipeline
|
|
# - name: test
|
|
# image: cirrusci/flutter:stable
|
|
# pull: true
|
|
# commands:
|
|
# - flutter packages get
|
|
# - make test
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: release-latest
|
|
|
|
depends_on:
|
|
- testing
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push
|
|
|
|
workspace:
|
|
base: /home/cirrus/app
|
|
|
|
clone:
|
|
depth: 50
|
|
|
|
steps:
|
|
# Because drone separates the pipelines, we have to add the build step to this pipeline. This is double code, we should change it at some point if possible.
|
|
- name: build
|
|
image: cirrusci/flutter:stable
|
|
pull: true
|
|
commands:
|
|
- sudo chown cirrus . -R # The clone step clones everything as root, this is our "fix" until we find a better solution
|
|
- flutter packages get
|
|
- make build-all
|
|
- mkdir apks
|
|
- mv build/app/outputs/apk/*/*/*.apk apks
|
|
|
|
# Push the releases to our pseudo-s3-bucket
|
|
- name: release
|
|
image: plugins/s3:1
|
|
pull: true
|
|
settings:
|
|
bucket: vikunja
|
|
access_key:
|
|
from_secret: aws_access_key_id
|
|
secret_key:
|
|
from_secret: aws_secret_access_key
|
|
endpoint: https://storage.kolaente.de
|
|
path_style: true
|
|
strip_prefix: apks/
|
|
source: apks/*
|
|
target: /app/master
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: release-version
|
|
|
|
depends_on:
|
|
- testing
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|
|
|
|
workspace:
|
|
base: /home/cirrus/app
|
|
|
|
clone:
|
|
depth: 50
|
|
|
|
steps:
|
|
# Because drone separates the pipelines, we have to add the build step to this pipeline. This is double code, we should change it at some point if possible.
|
|
- name: build
|
|
image: cirrusci/flutter:stable
|
|
pull: true
|
|
commands:
|
|
- sudo chown cirrus . -R # The clone step clones everything as root, this is our "fix" until we find a better solution
|
|
- flutter packages get
|
|
- make build-all
|
|
- mkdir apks
|
|
- mv build/app/outputs/apk/*/*/*.apk apks
|
|
# Push the releases to our pseudo-s3-bucket
|
|
- name: release
|
|
image: plugins/s3:1
|
|
pull: true
|
|
settings:
|
|
bucket: vikunja
|
|
access_key:
|
|
from_secret: aws_access_key_id
|
|
secret_key:
|
|
from_secret: aws_secret_access_key
|
|
endpoint: https://storage.kolaente.de
|
|
path_style: true
|
|
strip_prefix: apks/
|
|
source: apks/*
|
|
target: /app/${DRONE_TAG##v}
|
|
|
|
---
|
|
kind: pipeline
|
|
type: exec
|
|
name: release-ios
|
|
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
branch:
|
|
- master
|
|
|
|
platform:
|
|
os: darwin
|
|
arch: amd64
|
|
|
|
|
|
steps:
|
|
- name: build
|
|
commands:
|
|
- make build-ios
|
|
environment:
|
|
HOME: /Users/buildslave
|
|
- name: deploy
|
|
environment:
|
|
HOME: /Users/buildslave
|
|
LC_ALL: en_US.UTF-8
|
|
LANG: en_US.UTF-8
|
|
FASTLANE_SKIP_UPDATE_CHECK: true
|
|
FASTLANE_HIDE_CHANGELOG: true
|
|
MATCH_PASSWORD:
|
|
from_secret: match_password
|
|
FASTLANE_PASSWORD:
|
|
from_secret: fastlane_password
|
|
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD:
|
|
from_secret: fastlane_apple_password
|
|
FASTLANE_SESSION:
|
|
from_secret: fastlane_session
|
|
KEYCHAIN_PASSWORD:
|
|
from_secret: keychain_password
|
|
commands:
|
|
- cd ios
|
|
- fastlane ios signing
|
|
- fastlane ios beta
|
|
|
|
depends_on:
|
|
- testing |