diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 0647fea..eadf001 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -21,6 +21,7 @@ on: - "Dockerfile-quetre" - "Dockerfile-breezewiki" - "Dockerfile-nitter" + - "Dockerfile-simplytranslate" - "remote-check.sh" # Automated schedule: @@ -35,6 +36,7 @@ jobs: scribe: ${{ steps.scribe.outputs.scribe-out-of-date || steps.trigger-all.outputs.build-all }} breezewiki: ${{ steps.breezewiki.outputs.breezewiki-out-of-date || steps.trigger-all.outputs.build-all }} nitter: ${{ steps.nitter.outputs.nitter-out-of-date || steps.trigger-all.outputs.build-all }} + simplytranslate: ${{ steps.simplytranslate.outputs.simplytranslate-out-of-date || steps.trigger-all.outputs.build-all }} # clone repo steps: - name: Checkout repository @@ -66,6 +68,11 @@ jobs: id: nitter run: sh remote-check.sh https://github.com/zedeus/nitter nitter-local.txt build-hashes/nitter.txt nitter-out-of-date guest_accounts + - name: Pull simplytranslate remote commits + if: ${{ github.event.inputs.trigger_all_builds == 'false' || github.event.inputs.trigger_all_builds == '' }} + id: simplytranslate + run: sh remote-check.sh https://codeberg.org/ManeraKai/simplytranslate simplytranslate-local.txt build-hashes/simplytranslate.txt simplytranslate-out-of-date + # build-quetre: # needs: check-for-updates # if: ${{ needs.check-for-updates.outputs.quetre == 'true' }} @@ -148,6 +155,28 @@ jobs: branch: guest_accounts repo: https://github.com/zedeus/nitter build_arch: linux/amd64, linux/arm64 + permissions: + contents: write + packages: write + # This is used to complete the identity challenge + # with sigstore/fulcio when running outside of PRs. + id-token: write + + build-simplytranslate: + needs: check-for-updates + if: ${{ needs.check-for-updates.outputs.simplytranslate == 'true' }} + uses: FarisZR/Privacy-OCI/.github/workflows/build-workflow.yml@main + secrets: inherit + with: + image_name: fariszr/simplytranslate + dockerfile: Dockerfile-simplytranslate + context: ./simplytranslate + license: AGPL-3.0 + clone_repo: ${{ true }} + hash_file: build-hashes/simplytranslate.txt + app_name: simplytranslate + repo: https://github.com/ManeraKai/simplytranslate + build_arch: linux/amd64, linux/arm64 permissions: contents: write packages: write diff --git a/Dockerfile-simplytranslate b/Dockerfile-simplytranslate new file mode 100644 index 0000000..c594ca8 --- /dev/null +++ b/Dockerfile-simplytranslate @@ -0,0 +1,8 @@ +FROM golang:1.20-alpine + +COPY . . +WORKDIR web/ +RUN go mod download +RUN go build -o simplytranslate +EXPOSE 5000 +CMD [ "./simplytranslate" ] \ No newline at end of file diff --git a/README.md b/README.md index e50280c..8c6e7e4 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ A Github action runs every hour to check for updates, and if there are any new c ### Breezewiki && Bibliogram - AMD64 -### Scribe && Nitter +### Scribe & Nitter & Simplytranslate - AMD64 - ARM64 diff --git a/build-hashes/simplytranslate.txt b/build-hashes/simplytranslate.txt new file mode 100644 index 0000000..e69de29