Skip to content
Snippets Groups Projects
.gitlab-ci.yml 798 B
Newer Older
Eric Vidal's avatar
Eric Vidal committed
image: obarun/pkgbuild:latest

variables:
  repo: "$CI_PROJECT_DIR"
  pkg_name: "$CI_PROJECT_NAME"
  ssh_private_key: "$SSH_PRIVATE_KEY"
  ssh_known_host: "$SSH_KNOWN_HOSTS"
Eric Vidal's avatar
Eric Vidal committed
  pkg_target: "$CI_COMMIT_REF_NAME"
Eric Vidal's avatar
Eric Vidal committed
  repo_conf: ".repositories.conf"
  # followed variable are ignored but
  # need to be set
  pkg_track: "branch"
Eric Vidal's avatar
Eric Vidal committed
  pkg_address: "$CI_PROJECT_URL"
Eric Vidal's avatar
Eric Vidal committed

build_repo:
Eric Vidal's avatar
Eric Vidal committed
  script:
Eric Vidal's avatar
Eric Vidal committed
    - cp ./${repo_conf} /etc/${repo_conf}
    - builder.sh --chdir=trunk
Eric Vidal's avatar
Eric Vidal committed
  
  artifacts:
    name: $CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA
Eric Vidal's avatar
Eric Vidal committed
    expire_in: 2 days
    paths:
Eric Vidal's avatar
Eric Vidal committed
  
  only:
    changes:
      - trunk/PKGBUILD
   
deploy:
  stage: deploy
  only:
    changes:
      - trunk/PKGBUILD
      
  script:    
Eric Vidal's avatar
Eric Vidal committed
    - deploy.sh