From 82ec34754535c08d940f67df21506b297cd7d3e1 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Fri, 15 Dec 2023 23:35:23 +0100 Subject: [PATCH] chore: remove all selfhosted related stuff --- .github/workflows/docker.yml | 54 ------------------------------------ deploy.sh | 10 ------- 2 files changed, 64 deletions(-) delete mode 100644 .github/workflows/docker.yml delete mode 100644 deploy.sh diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index 157a6d9..0000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,54 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# GitHub recommends pinning actions to a commit SHA. -# To get a newer version, you will need to update the SHA. -# You can also reference a tag or branch, but the action may change without warning. - -name: Publish Docker image - -on: - push: - branches: - - main - -jobs: - push_to_registry: - name: Push Docker image to Docker Hub - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v3 - - - name: Log in to Sr Izan's container registry - uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a - with: - registry: containers.srizan.dev - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 - with: - images: containers.srizan.dev/automata - tags: latest - - - name: Build and push Docker image - uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 - with: - context: . - file: ./Dockerfile - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - - - name: Emit a webhook to the server - env: - AUTH_HEADER: ${{ secrets.WHSERVER_TOKEN }} - run: | - curl -X POST \ - -H "Authorization: Bearer $AUTH_HEADER" \ - https://webhooks.srizan.dev/hooks/automata \ No newline at end of file diff --git a/deploy.sh b/deploy.sh deleted file mode 100644 index 809f5e5..0000000 --- a/deploy.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -git pull - -docker build . -t srizan10/automata - -docker stop automata - -docker rm automata - -docker run -d -t --name automata -p 8090:3000 --restart unless-stopped srizan10/automata \ No newline at end of file