Skip to content

Commit

Permalink
Add simplytranslate
Browse files Browse the repository at this point in the history
  • Loading branch information
FarisZR committed Jun 7, 2024
1 parent 6ce61a1 commit b7410d7
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
- "Dockerfile-quetre"
- "Dockerfile-breezewiki"
- "Dockerfile-nitter"
- "Dockerfile-simplytranslate"
- "remote-check.sh"
# Automated
schedule:
Expand All @@ -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
Expand Down Expand Up @@ -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' }}
Expand Down Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions Dockerfile-simplytranslate
Original file line number Diff line number Diff line change
@@ -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" ]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Empty file.

0 comments on commit b7410d7

Please sign in to comment.