From 5ea8bbf4d50def53b1603baf4526fd026b90073f Mon Sep 17 00:00:00 2001 From: divyam234 <47589864+divyam234@users.noreply.github.com> Date: Sat, 10 Aug 2024 23:46:32 +0530 Subject: [PATCH] refactor: Remove GitHub workflows --- .github/dependabot.yml | 13 ------- .github/workflows/build-dev.yml | 36 ------------------- .github/workflows/build-postgres.yml | 40 --------------------- .github/workflows/release.yml | 53 ---------------------------- 4 files changed, 142 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/build-dev.yml delete mode 100644 .github/workflows/build-postgres.yml delete mode 100644 .github/workflows/release.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 0b5d696..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,13 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "gomod" # See documentation for possible values - directory: "/" # Location of package manifests - schedule: - interval: "daily" - assignees: - - "divyam234" \ No newline at end of file diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml deleted file mode 100644 index 9476052..0000000 --- a/.github/workflows/build-dev.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Build Dev - -on: - push: - branches: - - dev - -permissions: write-all - -jobs: - goreleaser: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Set Vars - run: | - echo "IMAGE=ghcr.io/${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV - - - name: Build Image - uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: ${{ env.IMAGE }}:dev \ No newline at end of file diff --git a/.github/workflows/build-postgres.yml b/.github/workflows/build-postgres.yml deleted file mode 100644 index 0791ea9..0000000 --- a/.github/workflows/build-postgres.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Build Postgres - -on: - workflow_dispatch: - -permissions: write-all - -jobs: - build-postgres: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Set Vars - run: | - echo "IMAGE=ghcr.io/${GITHUB_ACTOR,,}/postgres" >> $GITHUB_ENV - - - name: Build Image - uses: docker/build-push-action@v6 - with: - context: ./docker/postgres - push: true - platforms: linux/amd64,linux/arm64 - tags: ${{ env.IMAGE }}:latest,${{ env.IMAGE }}:16-alpine \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 7ac0913..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Goreleaser - -on: - push: - tags: - - "*" - -permissions: write-all - -jobs: - goreleaser: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: stable - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - uses: pnpm/action-setup@v4 - with: - version: 9 - - - name: Build UI - run: | - git clone https://github.com/divyam234/teldrive-ui - cd teldrive-ui - pnpm install --frozen-lockfile - export VITE_SERVER_VERSION=$GITHUB_REF_NAME - pnpm run build - cd .. - mv teldrive-ui/dist ui/dist - rm -rf teldrive-ui - - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v6 - with: - distribution: goreleaser - version: latest - args: release --clean - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file