diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml new file mode 100644 index 0000000..800a27d --- /dev/null +++ b/.gitea/workflows/docker-build.yml @@ -0,0 +1,74 @@ +name: Docker Build + +on: + push: + branches: + - main + paths: + - 'Dockerfile' + - 'entrypoint.sh' + - '.gitea/workflows/docker-build.yml' + +jobs: + build: + name: Build Docker image + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: open the docker socket + run: sudo chmod 666 /var/run/docker.sock + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{secrets.DOCKER_USERNAME}} + password: ${{secrets.DOCKER_PASSWORD}} + + - name: Build Docker image + run: | + docker buildx build \ + --file Dockerfile \ + --tag uzurka/master-bot:latest \ + --tag uzurka/master-bot:${{github.sha}} \ + --platform linux/amd64,linux/arm64 \ + --push \ + . + + - name: Build Success + uses: rjstone/discord-webhook-notify@v1 + if: success() + with: + severity: info + details: <@436978132105560064> GraalVM 23 Docker image build sucessfull ! + webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} + username: Gitea uzurka + avatar_url: https://download.uzurka.fr/Logo/uzurka200.png + + - name: Build Failure + uses: rjstone/discord-webhook-notify@v1 + if: failure() + with: + severity: error + details: <@436978132105560064> GraalVM 23 Docker image build failed ! + webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} + username: Gitea uzurka + avatar_url: https://download.uzurka.fr/Logo/uzurka200.png + + - name: Build Cancelled + uses: rjstone/discord-webhook-notify@v1 + if: cancelled() + with: + severity: warn + details: <@436978132105560064> GraalVM 23 Docker image build cancelled ! + webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} + username: Gitea uzurka + avatar_url: https://download.uzurka.fr/Logo/uzurka200.png \ No newline at end of file diff --git a/.gitea/workflows/docker-pushrm.yml b/.gitea/workflows/docker-pushrm.yml new file mode 100644 index 0000000..9947f7d --- /dev/null +++ b/.gitea/workflows/docker-pushrm.yml @@ -0,0 +1,28 @@ +name: Docker Push README + +on: + push: + branches: + - main + paths: + - 'README.md' + +jobs: + build: + name: Docker Push README + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: push README to Dockerhub + uses: christian-korneck/update-container-description-action@v1 + env: + DOCKER_USER: uzurka + DOCKER_PASS: ${{ secrets.DOCKER_PASSWORD }} + with: + destination_container_repo: uzurka/master-bot + provider: dockerhub + short_description: 'A complete discord bot' + readme_file: 'README.md' \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 18daf29..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -name: Bug report -about: Create a report -title: '' -labels: 'bug' -assignees: '' ---- - -### IMPORTANT : _DO NOT SKIP THIS STEPS AND DO NOT DELETE THEM. WE CAN NOT HELP YOU IF YOU DO NOT PROVIDE INFORMATION AND STEPS TO REPRODUCE_ - -Do not open an issue if you simply "copied" code over to your bot/another bot. This is absolutely not recommended and will cause bugs. Also do not open an issue if you modified code and added features and now it's not working right. This is because I can't figure it out and don't have the time to read your code and find out what you did wrong. - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: - -1. Use 'x' command -2. provide 'y' argument - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - -- OS: [e.g. Windows, Ubuntu...]: -- Node.js Version(Should be v16 at least): -- Is python 2.7 installed?: -- How are you hosting the bot(Locally, on a vps, heroku, glitch...): - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index c38d541..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -name: Feature request -about: Suggest/request a new bot feature -title: '' -labels: 'enhancement' -assignees: '' ---- - -**Explain your suggestion** diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index a99ff8c..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,11 +0,0 @@ -on: [pull_request] - -jobs: - prettier: - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - - uses: actions/checkout@v3 - - - name: Build App - run: npx prettier . --check