Skip to content
Snippets Groups Projects
.gitlab-ci.yml 478 B
Newer Older
stages:
Eric Vidal's avatar
Eric Vidal committed
    - build
Eric Vidal's avatar
Eric Vidal committed
    - deploy
Eric Vidal's avatar
Eric Vidal committed
    - request

before_script:
  - cp ./pacman.conf /etc/pacman.conf.builder
Eric Vidal's avatar
Eric Vidal committed
package:
  stage: build
  script:
Eric Vidal's avatar
Eric Vidal committed
    - pkg-prepare.sh
Eric Vidal's avatar
Eric Vidal committed
    - pkg-build.sh
  artifacts:
Eric Vidal's avatar
Eric Vidal committed
    name: $CI_PROJECT_NAME-$CI_COMMIT_SHORT_SHA
    paths:
     - "*.pkg.tar.xz"
  only:
Eric Vidal's avatar
Eric Vidal committed
  - tags
Eric Vidal's avatar
Eric Vidal committed

deploy:
  stage: deploy
  dependencies:
    - package
  script:
    - pkg-deploy.sh
Eric Vidal's avatar
Eric Vidal committed
  only:
  - tags
Eric Vidal's avatar
Eric Vidal committed

Eric Vidal's avatar
Eric Vidal committed
request:
  stage: build
  script:
    - pkg-build.sh
Eric Vidal's avatar
Eric Vidal committed
  only:
Eric Vidal's avatar
Eric Vidal committed
  - merge_requests