From 5971add9c17f8a5534664f0bbb10f504fb369399 Mon Sep 17 00:00:00 2001 From: Luke R Date: Thu, 2 May 2024 11:42:04 -0700 Subject: [PATCH] Testing workflow --- .gitea/workflows/lint.yaml | 15 +++++ .gitlab-ci.yml | 58 ------------------- .../merge_request_templates/merge_request.md | 11 ---- 3 files changed, 15 insertions(+), 69 deletions(-) create mode 100644 .gitea/workflows/lint.yaml delete mode 100755 .gitlab-ci.yml delete mode 100755 .gitlab/merge_request_templates/merge_request.md diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml new file mode 100644 index 00000000..6481cbfe --- /dev/null +++ b/.gitea/workflows/lint.yaml @@ -0,0 +1,15 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: [push] + +jobs: + Post-startup-message: + runs-on: appleboy/drone-discord + env: + WEBHOOK_ID=${{ secrets.WEBHOOK_ID }} + WEBHOOK_TOKEN=${{ secrets.WEBHOOK_TOKEN }} + WAIT=false + TTS=false + USERNAME=test + AVATAR_URL=https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTP3ekDW_jiUIEmAym337xeS7WN-k_DUq8YHi6VVfwQQw&s + MESSAGE=🚀 Pipeline [[#{{build.number}}]({{build.link}})] of branch [{{commit.branch}}]({{commit.link}}) by ${DRONE_COMMIT_AUTHOR_NAME} has started diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100755 index 579486ea..00000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,58 +0,0 @@ -image: docker:dind -services: - - name: docker:dind - entrypoint: ["env", "-u", "DOCKER_HOST"] - command: ["dockerd-entrypoint.sh"] -variables: - DOCKER_TLS_CERTDIR: "" - DOCKER_HOST: tcp://docker:2375/ - DOCKER_DRIVER: overlay2 - -stages: - - lint_python - - lint_helm - - deploy - -lint_helm: - image: alpine/helm - stage: lint_helm - script: - - helm lint ./helm - rules: - - changes: - - helm/* - -lint_python: - image: python:alpine - stage: lint_python - script: - - pip install -q black && black --fast --check . - rules: - - changes: - - app/**/* - -build_and_push_container: - stage: deploy - script: - - echo "Wait for Docker daemon at tcp://localhost:2375" - - while ! nc -z localhost 2375; do sleep 0.1; done # Wait until docker socket is available - - docker login -u ldooks -p $DOCKER_ACCESS_TOKEN - - docker build --platform linux/amd64 -t ldooks/dragon-bot:$CI_PIPELINE_IID -t ldooks/dragon-bot:latest . - - docker push ldooks/dragon-bot -a - rules: - - changes: - - app/**/* - - Dockerfile - -sync_argo: - stage: .post - image: python:alpine - script: - - apk add --no-cache jq curl - - latest=$(curl -sL https://api.github.com/repos/argoproj/argo-cd/releases/latest | jq -r '.assets[] | select( .name | contains("argocd-linux-amd64")).browser_download_url') - - curl -Ls $latest -o /tmp/argocd && chmod +x /tmp/argocd - - /tmp/argocd --insecure --server argocd-server.argocd.svc.cluster.local --auth-token $ARGOCD_TOKEN app set dragon-bot --helm-set image.tag=$CI_PIPELINE_IID - rules: - - changes: - - helm/* - - app/**/* diff --git a/.gitlab/merge_request_templates/merge_request.md b/.gitlab/merge_request_templates/merge_request.md deleted file mode 100755 index bd8f0b25..00000000 --- a/.gitlab/merge_request_templates/merge_request.md +++ /dev/null @@ -1,11 +0,0 @@ -### New Merge Request - -- What? - * `briefly describe the issue this is fixing` -- How? - * `briefly describe what this PR is doing to remedy the issue` -- Why? - * `is there an open issue associated with this PR? if so, reference it with #56 (or whatever the issue number is)` -- Is it...? - * [ ] Based? - * [ ] Dale-pilled? \ No newline at end of file