Compare commits
No commits in common. "205b0731db90cc8ed9804a3956a61aeb769aacaf" and "3d8ab95f1169fa61d353fda96604ebdbcc59a4f0" have entirely different histories.
205b0731db
...
3d8ab95f11
5 changed files with 7 additions and 29 deletions
9
.github/workflows/build-container.yaml
vendored
9
.github/workflows/build-container.yaml
vendored
|
@ -9,12 +9,11 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v2
|
||||||
- name: Login to GHCR
|
- name: Login to GHCR
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v2
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
|
@ -22,7 +21,7 @@ jobs:
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|
4
.github/workflows/get_context.yml
vendored
4
.github/workflows/get_context.yml
vendored
|
@ -32,12 +32,12 @@ jobs:
|
||||||
run: ls -lR
|
run: ls -lR
|
||||||
- run: python find_posts.py --lock-hours=0 --access-token=${{ secrets.ACCESS_TOKEN }} -c="./config.json"
|
- run: python find_posts.py --lock-hours=0 --access-token=${{ secrets.ACCESS_TOKEN }} -c="./config.json"
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: artifacts
|
name: artifacts
|
||||||
path: |
|
path: |
|
||||||
artifacts
|
artifacts
|
||||||
- name: Checkout user's forked repository for keeping workflow alive
|
- name: Checkout user's forked repository for keeping workflow alive
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
- name: Keep workflow alive
|
- name: Keep workflow alive
|
||||||
uses: gautamkrishnar/keepalive-workflow@v1
|
uses: gautamkrishnar/keepalive-workflow@v1
|
||||||
|
|
|
@ -97,8 +97,6 @@ Persistent files are stored in `/app/artifacts` within the container, so you may
|
||||||
|
|
||||||
An [example Kubernetes CronJob](./examples/k8s-cronjob.yaml) for running the container is included in the `examples` folder.
|
An [example Kubernetes CronJob](./examples/k8s-cronjob.yaml) for running the container is included in the `examples` folder.
|
||||||
|
|
||||||
An [example Docker Compose Script](./examples/docker-compose.yaml) for running the container periodically is included in the `examples` folder.
|
|
||||||
|
|
||||||
### Configuration options
|
### Configuration options
|
||||||
|
|
||||||
FediFetcher has quite a few configuration options, so here is my quick configuration advice, that should probably work for most people:
|
FediFetcher has quite a few configuration options, so here is my quick configuration advice, that should probably work for most people:
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
name: fedifetcher
|
|
||||||
services:
|
|
||||||
fedifetcher:
|
|
||||||
stdin_open: true
|
|
||||||
tty: true
|
|
||||||
image: ghcr.io/nanos/fedifetcher:latest
|
|
||||||
command: "--access-token=<TOKEN> --server=<SERVER>"
|
|
||||||
# Persist our data
|
|
||||||
volumes:
|
|
||||||
- ./data:/app/artifacts
|
|
||||||
# Use the `deploy` option to enable `restart_policy`
|
|
||||||
deploy:
|
|
||||||
# Don't go above 1 replica to avoid multiple overlapping executions of the script
|
|
||||||
replicas: 1
|
|
||||||
restart_policy:
|
|
||||||
# The `any` condition means even after successful runs, we'll restart the script
|
|
||||||
condition: any
|
|
||||||
# Specify how often the script should run - for example; after 1 hour.
|
|
||||||
delay: 1h
|
|
|
@ -1219,7 +1219,7 @@ def set_server_apis(server):
|
||||||
# support for new server software should be added here
|
# support for new server software should be added here
|
||||||
software_apis = {
|
software_apis = {
|
||||||
'mastodonApiSupport': ['mastodon', 'pleroma', 'akkoma', 'pixelfed', 'hometown', 'iceshrimp'],
|
'mastodonApiSupport': ['mastodon', 'pleroma', 'akkoma', 'pixelfed', 'hometown', 'iceshrimp'],
|
||||||
'misskeyApiSupport': ['misskey', 'calckey', 'firefish', 'foundkey', 'sharkey'],
|
'misskeyApiSupport': ['misskey', 'calckey', 'firefish', 'foundkey'],
|
||||||
'lemmyApiSupport': ['lemmy']
|
'lemmyApiSupport': ['lemmy']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue