From 916e7d18e3e9f0ae63a83e9e36e0e80363fbf3f2 Mon Sep 17 00:00:00 2001 From: "Luigi F. Cruz" Date: Sun, 27 Aug 2023 16:11:01 -0300 Subject: [PATCH] Remove CI. --- .github/workflows/release.yml | 50 ---------------------------------- .github/workflows/validate.yml | 42 ---------------------------- 2 files changed, 92 deletions(-) delete mode 100644 .github/workflows/release.yml delete mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index a95896a..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,50 +0,0 @@ -on: - release: - types: [ created ] - -name: Build & Deploy Image - -jobs: - build: - name: Build & Release Image - runs-on: ARM64 - timeout-minutes: 2880 - env: - working-directory: ./ - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Clean docker - id: clean_docker - working-directory: ${{ env.working-directory }} - run: | - docker system prune -af - docker system prune --volumes -f - docker image prune -af - docker container stop $(docker container ls -aq) || true - docker container rm $(docker container ls -aq) || true - - name: Build project - id: builder - working-directory: ${{ env.working-directory }} - run: | - bash build-docker.sh - echo ::set-output name=filename::$(ls deploy/*.img.xz | xargs -n 1 basename) - - name: Fix Permissions - id: fix_perm_filename - run: | - chmod a+rw ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} - echo ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.LONG_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} - asset_name: ${{ steps.builder.outputs.filename }} - asset_content_type: application/x-tar - - name: Delete Image - id: delete_image - run: | - rm ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml deleted file mode 100644 index 38dcdd2..0000000 --- a/.github/workflows/validate.yml +++ /dev/null @@ -1,42 +0,0 @@ -on: ['pull_request'] - -name: Build & Validate Image - -jobs: - build: - name: Build & Validate Image - runs-on: ARM64 - timeout-minutes: 2880 - env: - working-directory: ./ - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Clean docker - id: clean_docker - working-directory: ${{ env.working-directory }} - run: | - docker system prune -af - docker system prune --volumes -f - docker image prune -af - docker container stop $(docker container ls -aq) || true - docker container rm $(docker container ls -aq) || true - - name: Build project - id: builder - working-directory: ${{ env.working-directory }} - run: | - bash build-docker.sh - echo ::set-output name=filename::$(ls deploy/*.img.xz | xargs -n 1 basename) - - name: Fix Permissions - id: fix_perm_filename - run: | - chmod a+rw ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} - echo ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} - - uses: actions/upload-artifact@v1 - with: - name: ${{ steps.builder.outputs.filename }} - path: ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} - - name: Delete Image - id: delete_image - run: | - rm ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }}