Skip to content

Commit

Permalink
add nitter guest_accounts branch
Browse files Browse the repository at this point in the history
  • Loading branch information
FarisZR committed Dec 25, 2023
1 parent 166868c commit f5ff960
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
- "Dockerfile-scribe"
- "Dockerfile-quetre"
- "Dockerfile-breezewiki"
- "Dockerfile-nitter"
- "remote-check.sh"
# Automated
schedule:
Expand Down Expand Up @@ -59,6 +60,11 @@ jobs:
id: breezewiki
run: sh remote-check.sh https://gitdab.com/cadence/breezewiki breezewiki-local.txt build-hashes/breezewiki.txt breezewiki-out-of-date

- name: Pull Nitter guest_accounts remote commits
if: ${{ github.event.inputs.trigger_all_builds == 'false' || github.event.inputs.trigger_all_builds == '' }}
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

# build-quetre:
# needs: check-for-updates
# if: ${{ needs.check-for-updates.outputs.quetre == 'true' }}
Expand Down Expand Up @@ -124,3 +130,26 @@ jobs:
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

build-nitter:
needs: check-for-updates
if: ${{ needs.check-for-updates.outputs.nitter == 'true' }}
uses: FarisZR/Privacy-OCI/.github/workflows/build-workflow.yml@main
secrets: inherit
with:
image_name: fariszr/nitter
dockerfile: Dockerfile-nitter
context: ./nitter
license: AGPL-3.0
clone_repo: ${{ true }}
hash_file: build-hashes/nitter.txt
app_name: nitter
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
24 changes: 24 additions & 0 deletions Dockerfile-nitter
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM alpine:3.18 as nim

RUN apk --no-cache add libsass-dev pcre gcc git libc-dev "nim=1.6.14-r0" "nimble=0.13.1-r2"

WORKDIR /src/nitter

COPY nitter.nimble .
RUN nimble install -y --depsOnly

COPY . .
RUN nimble build -d:danger -d:lto -d:strip \
&& nimble scss \
&& nimble md

FROM alpine:3.18
WORKDIR /src/
RUN apk --no-cache add pcre ca-certificates openssl1.1-compat
COPY --from=nim /src/nitter/nitter ./
COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf
COPY --from=nim /src/nitter/public ./public
EXPOSE 8080
RUN adduser -h /src/ -D -s /bin/sh nitter
USER nitter
CMD ./nitter
Empty file added build-hashes/nitter.txt
Empty file.

0 comments on commit f5ff960

Please sign in to comment.