在跑步者和不同阶段之间分享文物

时间:2019-01-28 21:11:04

标签: docker yaml gitlab-ci gitlab-ci-runner

我将Mac Mini与连接到Gitlab Ci的运行程序连接在一起,一个在Docker中连接,另一个直接连接到Gitlab Ci中使用的yaml文件,然后尝试逐步构建Docker运行程序中的android运行器中的android,但是我需要在主机中而不是在Docker中查看来自它的工件,我尝试了不同的步骤,但似乎错了。这是我上一个yaml文件中试图指定工件的部分:

image: 
stage: build
script:
 - bash production.sh
artifacts:
  name: "android "
  expire_in: 3 days
  paths:
    - platforms/android/app/build/outputs/apk/release/
dependencies: []
cache:
  policy: pull
  key: "android-builder-${CI_RUNNER_DESCRIPTION}"
  paths:
    - .yarn/
    - node_modules/
    - .gradle/wrapper/
    - .gradle/caches/
    - plugins/
only:
 - master

build android stay:
<<: *build_android_definition
variables:
  APP_ENV: production
  APP_BRANDING: default

# Bundled release package for easy deployment (for production deployment)
release package:
stage: release
script:
  - mkdir -p android
  - mkdir -p ios
  - mv platforms/android/app/build/outputs/apk/release/* android/
  - mv platforms/ios/build/* ios/  
dependencies:
  - build android app-store stay
artifacts:
  name: "client publish package ${CI_COMMIT_REF_NAME}"
  expire_in: 1 mos
  paths:
    - android
    - ios
only:
  - master


# Automatically publish to the Playstore
publish android:
stage: publish
script:
  - fastlane supply --apk ....
  - echo Maybe even prepare some text for the user to show the instructions what have to be done to publish this using the artifacts that came out the release stuff!
tags:
  - macOS
only:
  - master
dependencies:
  - build android app-store stay

So i need to copy the platforms/android/app/build/outputs/apk/release/ which is in docker runner to the host slave.

0 个答案:

没有答案
相关问题