Fastlane
This commit is contained in:
parent
3b94a023d1
commit
9d0bbe4d11
@ -8,33 +8,32 @@ stages:
|
|||||||
- production
|
- production
|
||||||
- stop
|
- stop
|
||||||
|
|
||||||
#
|
.updateContainerJob:
|
||||||
#.updateContainerJob:
|
image: docker:stable
|
||||||
# image: docker:stable
|
stage: environment
|
||||||
# stage: environment
|
services:
|
||||||
# services:
|
- docker:dind
|
||||||
# - docker:dind
|
script:
|
||||||
# script:
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||||
# - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG || true
|
||||||
# - docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG || true
|
- docker build --cache-from $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG .
|
||||||
# - docker build --cache-from $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG .
|
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||||
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
|
||||||
#
|
updateContainer:
|
||||||
#updateContainer:
|
extends: .updateContainerJob
|
||||||
# extends: .updateContainerJob
|
only:
|
||||||
# only:
|
changes:
|
||||||
# changes:
|
- Dockerfile
|
||||||
# - Dockerfile
|
|
||||||
#
|
ensureContainer:
|
||||||
#ensureContainer:
|
extends: .updateContainerJob
|
||||||
# extends: .updateContainerJob
|
allow_failure: true
|
||||||
# allow_failure: true
|
before_script:
|
||||||
# before_script:
|
- "mkdir -p ~/.docker && echo '{\"experimental\": \"enabled\"}' > ~/.docker/config.json"
|
||||||
# - "mkdir -p ~/.docker && echo '{\"experimental\": \"enabled\"}' > ~/.docker/config.json"
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||||
# - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
# Skip update container `script` if the container already exists
|
||||||
# # Skip update container `script` if the container already exists
|
# via https://gitlab.com/gitlab-org/gitlab-ce/issues/26866#note_97609397 -> https://stackoverflow.com/a/52077071/796832
|
||||||
# # via https://gitlab.com/gitlab-org/gitlab-ce/issues/26866#note_97609397 -> https://stackoverflow.com/a/52077071/796832
|
- docker manifest inspect $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG > /dev/null && exit || true
|
||||||
# - docker manifest inspect $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG > /dev/null && exit || true
|
|
||||||
|
|
||||||
.build_job:
|
.build_job:
|
||||||
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||||
@ -59,7 +58,6 @@ stages:
|
|||||||
|
|
||||||
|
|
||||||
buildDebug:
|
buildDebug:
|
||||||
image: vratislav/gitlab-ci-fastlane-android
|
|
||||||
extends: .build_job
|
extends: .build_job
|
||||||
script:
|
script:
|
||||||
- bundle exec fastlane buildDebug
|
- bundle exec fastlane buildDebug
|
||||||
@ -79,7 +77,7 @@ buildRelease:
|
|||||||
name: production
|
name: production
|
||||||
|
|
||||||
testDebug:
|
testDebug:
|
||||||
# image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
dependencies:
|
||||||
- buildDebug
|
- buildDebug
|
||||||
@ -87,7 +85,7 @@ testDebug:
|
|||||||
- bundle exec fastlane test
|
- bundle exec fastlane test
|
||||||
|
|
||||||
publishInternal:
|
publishInternal:
|
||||||
# image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||||
stage: internal
|
stage: internal
|
||||||
dependencies:
|
dependencies:
|
||||||
- buildRelease
|
- buildRelease
|
||||||
@ -100,7 +98,7 @@ publishInternal:
|
|||||||
- bundle exec fastlane internal
|
- bundle exec fastlane internal
|
||||||
|
|
||||||
.promote_job:
|
.promote_job:
|
||||||
# image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||||
when: manual
|
when: manual
|
||||||
dependencies: []
|
dependencies: []
|
||||||
before_script:
|
before_script:
|
||||||
|
Loading…
Reference in New Issue
Block a user