From f907b7e072187746a3d0f9caee3e72dc60d86cf7 Mon Sep 17 00:00:00 2001 From: Kieron Morris Date: Sun, 9 Mar 2025 17:32:35 +0000 Subject: [PATCH] First attempt at drone cicd migration - Created a new `.drone.yml` that will compile the Dockerfile, upload this to the Docker Registry & then use this for building. --- .drone.yml | 23 ++++++++++++++++ .gitlab-ci.yml | 73 -------------------------------------------------- 2 files changed, 23 insertions(+), 73 deletions(-) create mode 100644 .drone.yml delete mode 100644 .gitlab-ci.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..f42cfaaf --- /dev/null +++ b/.drone.yml @@ -0,0 +1,23 @@ +kind: pipeline +type: docker +name: build + +steps: + - name: build-image + image: plugins/docker + settings: + repo: t3hn3rd/asuro-build + tags: latest + dockerfile: Dockerfile + registry: t3hn3rd + username: + from_secret: docker_username + password: + from_secret: docker_password + + - name: compile + image: t3hn3rd/asuro-build:latest + depends_on: + - build-image + commands: + - /compile.sh \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 5613dcbb..00000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,73 +0,0 @@ -stages: - - Compile Versions - - Compile Sources - - Link - - Generate Documentation - - Deploy - -cache: - - key: ${CI_COMMIT_REF_SLUG} - paths: - - lib/*.o - - bin/kernel.bin - - doc - -before_script: - - chmod +x *.sh - -versions: - stage: Compile Versions - script: - - ./compile_vergen.sh - artifacts: - paths: - - release/*.svg - - src/include/asuro.pas - -compile_sources: - stage: Compile Sources - script: - - rm -f lib/*.so - - ./compile_sources.sh - needs: - - versions - -link: - stage: Link - script: - - ./compile_stub.sh - - ./compile_link.sh - needs: - - versions - - compile_sources - -isogen: - stage: Deploy - script: - - ./compile_isogen.sh - - ./compile_sumgen.sh - artifacts: - paths: - - ./Asuro.iso - - ./release/checksum.svg - needs: - - link - -docgen: - stage: Generate Documentation - only: - - master - - develop - script: - - ./compile_sourcelist.sh - - ./compile_docs.sh - # Remove comments when we want to use gitlab pages. - #- cp doc public - allow_failure: true - artifacts: - paths: - - doc - #- public/* - #- ./sources.list - needs: - - versions