~comcloudway/ccw-aports

306c4156807c8f666f9860669939f1255eea24e2 — Jakob Meier 2 years ago 46ae0cd
testing gitlab CI
1 files changed, 28 insertions(+), 0 deletions(-)

A .gitlab-ci.yml
A .gitlab-ci.yml => .gitlab-ci.yml +28 -0
@@ 0,0 1,28 @@
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/npm.gitlab-ci.yml

publish:
  image: alpine:latest
  stage: deploy
  tags:
    - amd64
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_REF_NAME =~ /^v\d+\.\d+\.\d+.*$/
  script:
    # install dependencies
    - apk add curl apk-tools abuild
    # fetch secure files from gitlab secrets
    - export SECURE_FILES_DOWNLOAD_PATH ~/.abuild
    - curl -s https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/load-secure-files/-/raw/main/installer | bash
    - load-secure-files
    # TODO fetch the source
    - git clone https://codeberg.org/comcloudway/ccw-aports
    - cd ccw-aports
    # build every package in repo
    - ./build.sh all
    # TODO upload buildoutput
  artifacts:
    paths:
      - ~/packages/ccw-repo