From 306c4156807c8f666f9860669939f1255eea24e2 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Wed, 5 Oct 2022 19:41:20 +0200 Subject: [PATCH] testing gitlab CI --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..05ce07a --- /dev/null +++ b/.gitlab-ci.yml @@ -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 -- 2.38.5