From c5f4ac33f9e4ad7b407a65848997867db4f1afec Mon Sep 17 00:00:00 2001 From: Sandeep Rao Date: Sat, 14 Dec 2024 13:48:46 +0530 Subject: [PATCH] setup CI through Github action (#2) Revert some changes brought in through earlier commits --- .github/workflows/build.yml | 16 ++++++++++------ .github/workflows/dockerhub.yml | 2 +- .gitignore | 1 + Dockerfile | 4 +++- README.md | 6 ++++++ public/js/plugin-download.js | 8 ++++---- 6 files changed, 25 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d2478bf..9d68a0a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,19 +1,18 @@ name: Build on: - repository_dispatch: - workflow_dispatch: - + pull_request: + types: ['opened', 'reopened', 'synchronize', 'ready_for_review'] + jobs: build: if: "!contains(github.event.head_commit.message, 'skip ci')" - runs-on: ubuntu-latest container: image: crystallang/crystal:1.0.0-alpine steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install dependencies run: apk add --no-cache yarn yaml-static sqlite-static libarchive-dev libarchive-static acl-static expat-static zstd-static lz4-static bzip2-static libjpeg-turbo-dev libpng-dev tiff-dev - name: Build @@ -22,10 +21,15 @@ jobs: run: make check - name: Run tests run: make test + - name: Upload binary + uses: actions/upload-artifact@v4 + with: + name: mango + path: mango - name: build arm64v8 object file run: make arm64v8 || make arm64v8 - name: Upload object files - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: object files path: ./*.o diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index 96970245..5bc7a4bf 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -13,7 +13,7 @@ jobs: - name: Publish to Dockerhub uses: elgohr/Publish-Docker-Github-Action@master with: - name: hkalexling/mango + name: vrsandeep/mango username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} tags: "latest,${{ env.RELEASE_VERSION }}" diff --git a/.gitignore b/.gitignore index 8ff55adf..2d9b1bfc 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ public/webfonts .idea/ .tool-versions data/ +**/.DS_STORE diff --git a/Dockerfile b/Dockerfile index 5b24dbea..94eabcc8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,10 @@ FROM crystallang/crystal:1.0.0-alpine AS builder WORKDIR /Mango -COPY . . RUN apk add --no-cache yarn yaml-static sqlite-static libarchive-dev libarchive-static acl-static expat-static zstd-static lz4-static bzip2-static libjpeg-turbo-dev libpng-dev tiff-dev + +COPY . . + RUN make static || make static FROM library/alpine diff --git a/README.md b/README.md index e93b8192..c09eb5a9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ ![banner](./public/img/banner-paddings.png) +# Notes + +The original repo at https://github.com/getmango/Mango has stopped accepting new PRs. + +This repo will try to bring in some updates to keep the project alive for a little while longer. + # Mango [![Patreon](https://img.shields.io/badge/support-patreon-brightgreen?link=https://www.patreon.com/hkalexling)](https://www.patreon.com/hkalexling) ![Build](https://github.com/hkalexling/Mango/workflows/Build/badge.svg) [![Gitter](https://badges.gitter.im/mango-cr/mango.svg)](https://gitter.im/mango-cr/mango?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Discord](https://img.shields.io/discord/855633663425118228?label=discord)](http://discord.com/invite/ezKtacCp9Q) diff --git a/public/js/plugin-download.js b/public/js/plugin-download.js index a5708cf1..ebdb6809 100644 --- a/public/js/plugin-download.js +++ b/public/js/plugin-download.js @@ -325,8 +325,8 @@ const component = () => { return { key: k, - type: type, - values: values, + type, + values, }; }); }, @@ -340,8 +340,8 @@ const component = () => { value = value ? Date.parse(value).toString() : ''; return { key: i.getAttribute('data-filter-key'), - value: value, - type: type, + value, + type, }; }); },