I am using the Gitlab-ci
for the creating the build on the push,I have also creating the .gitlab-ci.yml
inside my root directory. With
If you have active shared-runner
, then try to give the tags of the runner in the .gitlab-ci.yml. Say if the tag for the shared-runner is dev-ci
, then find below the updated code:
image: jangrewe/gitlab-ci-android
stages:
- build
before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlew
cache:
key: ${CI_PROJECT_ID}
paths:
- .gradle/
build:
stage: build
tags:
- dev-ci
script:
- ./gradlew assembleDebug
artifacts:
paths:
- app/build/outputs/
Screenshot of the runner tags:
Setting up a runner
Before setting up a runner for your project, you need to first:
In your case, you can use Specific Runner with Docker as Runner-Executor and then, in the .gitlab-ci.yml
use the tags you provided while registering the runner.