This commit is contained in:
Gervasio Marchand 2022-12-05 08:38:07 -03:00
parent 4434af951e
commit 54828b9469
No known key found for this signature in database
GPG Key ID: B7736CB188DD0A38
6 changed files with 9 additions and 10 deletions

View File

@ -25,6 +25,6 @@ jobs:
Write-Host "Version $version"
Pop-Location
docker build . --tag ghcr.io/g3rv4/importdataasrelay:latest --tag "ghcr.io/g3rv4/importdataasrelay:$version"
docker push ghcr.io/g3rv4/importdataasrelay:latest
docker push "ghcr.io/g3rv4/importdataasrelay:$version"
docker build . --tag ghcr.io/g3rv4/getmoarfediverse:latest --tag "ghcr.io/g3rv4/getmoarfediverse:$version"
docker push ghcr.io/g3rv4/getmoarfediverse:latest
docker push "ghcr.io/g3rv4/getmoarfediverse:$version"

View File

@ -3,11 +3,10 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0.403-alpine3.16 AS builder
WORKDIR /src
COPY src /src/
RUN dotnet publish -c Release /src/ImportDataAsRelay.csproj -o /app
RUN dotnet publish -c Release /src/GetMoarFediverse.csproj -o /app
FROM mcr.microsoft.com/dotnet/aspnet:6.0.11-alpine3.16
VOLUME ["/data"]
ENV CONFIG_PATH=/data/config.json
COPY --from=builder /app /app
RUN ln -s /app/ImportDataAsRelay /bin/run
CMD ["/bin/run"]
CMD ["/app/GetMoarFediverse"]

View File

@ -1,4 +1,4 @@
# ImportDataAsRelay
# GetMoarFediverse
This is a small app that shows how you could use [FakeRelay](https://github.com/g3rv4/FakeRelay/) to import content into your instance that's tagged with hashtags you're interested in.
@ -12,7 +12,7 @@ The easiest way is with docker compose. This `docker-compose.yml` shows how it c
version: '2'
services:
importdata:
image: 'ghcr.io/g3rv4/importdataasrelay:latest'
image: 'ghcr.io/g3rv4/getmoarfediverse:latest'
volumes:
- '/path/to/data:/data'
```

View File

@ -1,7 +1,7 @@
using System.Collections.Immutable;
using Jil;
namespace ImportDataAsRelay;
namespace GetMoarFediverse;
public class Config
{

View File

@ -1,5 +1,5 @@
using System.Collections.Concurrent;
using ImportDataAsRelay;
using GetMoarFediverse;
using Jil;
Config.Init(Environment.GetEnvironmentVariable("CONFIG_PATH"));