From 0a5dd45ba0def9efff871a0116925cca72c2bee5 Mon Sep 17 00:00:00 2001 From: Mutzi Date: Mon, 13 Feb 2023 06:45:58 +0100 Subject: [PATCH] Removed gitlab CI --- .gitlab-ci.yml | 77 ----------------------------------------- backend/.gitlab-ci.yml | 22 ------------ frontend/.gitlab-ci.yml | 16 --------- 3 files changed, 115 deletions(-) delete mode 100644 .gitlab-ci.yml delete mode 100644 backend/.gitlab-ci.yml delete mode 100644 frontend/.gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 6a4d170..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,77 +0,0 @@ -include: - - local: '/backend/.gitlab-ci.yml' - - local: '/frontend/.gitlab-ci.yml' - -stages: - - build - - package - - release - -.package_server: - image: alpine:latest - stage: package - before_script: - - apk update - - apk add xz tar - artifacts: - paths: - - '*.tar.xz' - -package_server_glibc: - extends: .package_server - needs: - - job: build_backend_glibc - artifacts: true - - job: test_and_build_frontend - artifacts: true - script: - - mkdir static - - mv frontend/dist/* static/ - - tar -cvJf linux-x64-glibc.tar.xz server static - -package_server_muslc: - extends: .package_server - needs: - - job: build_backend_muslc - artifacts: true - - job: test_and_build_frontend - artifacts: true - script: - - mkdir static - - mv frontend/dist/* static/ - - tar -cvJf linux-x64-muslc.tar.xz server static - -upload_assets: - stage: release - image: curlimages/curl:latest - needs: - - job: package_server_glibc - artifacts: true - - job: package_server_muslc - artifacts: true - rules: - - if: $CI_COMMIT_TAG - script: - - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file linux-x64-glibc.tar.xz "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/linux-x64-glibc/$CI_COMMIT_TAG/linux-x64-glibc.tar.xz"' - - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file linux-x64-muslc.tar.xz "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/linux-x64-muslc/$CI_COMMIT_TAG/linux-x64-muslc.tar.xz"' - -create_release: - stage: release - image: registry.gitlab.com/gitlab-org/release-cli:latest - needs: - - upload_assets - rules: - - if: $CI_COMMIT_TAG - script: - - echo "running release_job" - release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties - tag_name: '$CI_COMMIT_TAG' - description: 'Release $CI_COMMIT_TAG' - assets: - links: - - name: 'linux-x64-glibc.tar.xz' - url: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/linux-x64-glibc/$CI_COMMIT_TAG/linux-x64-glibc.tar.xz' - link_type: package - - name: 'linux-x64-muslc.tar.xz' - url: '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/linux-x64-muslc/$CI_COMMIT_TAG/linux-x64-muslc.tar.xz' - link_type: package diff --git a/backend/.gitlab-ci.yml b/backend/.gitlab-ci.yml deleted file mode 100644 index 088d8fd..0000000 --- a/backend/.gitlab-ci.yml +++ /dev/null @@ -1,22 +0,0 @@ -build_backend_glibc: - stage: build - image: rust:bullseye - script: - - cd backend - - cargo build --release - - cp target/release/backend_rust ../server - artifacts: - paths: - - server - -build_backend_muslc: - stage: build - image: rust:alpine - script: - - apk add pkgconf musl-dev - - cd backend - - cargo build --release - - cp target/release/backend_rust ../server - artifacts: - paths: - - server diff --git a/frontend/.gitlab-ci.yml b/frontend/.gitlab-ci.yml deleted file mode 100644 index 7632836..0000000 --- a/frontend/.gitlab-ci.yml +++ /dev/null @@ -1,16 +0,0 @@ -test_and_build_frontend: - image: node:latest - stage: build - cache: - key: frontend - paths: - - frontend/.yarn - - frontend/node_modules - script: - - cd frontend - - yarn install --cache-folder .yarn --frozen-lockfile - - yarn lint - - yarn build - artifacts: - paths: - - frontend/dist/