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" Write-Host "Version $version"
Pop-Location Pop-Location
docker build . --tag ghcr.io/g3rv4/importdataasrelay:latest --tag "ghcr.io/g3rv4/importdataasrelay:$version" docker build . --tag ghcr.io/g3rv4/getmoarfediverse:latest --tag "ghcr.io/g3rv4/getmoarfediverse:$version"
docker push ghcr.io/g3rv4/importdataasrelay:latest docker push ghcr.io/g3rv4/getmoarfediverse:latest
docker push "ghcr.io/g3rv4/importdataasrelay:$version" 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 FROM mcr.microsoft.com/dotnet/sdk:6.0.403-alpine3.16 AS builder
WORKDIR /src WORKDIR /src
COPY src /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 FROM mcr.microsoft.com/dotnet/aspnet:6.0.11-alpine3.16
VOLUME ["/data"] VOLUME ["/data"]
ENV CONFIG_PATH=/data/config.json ENV CONFIG_PATH=/data/config.json
COPY --from=builder /app /app COPY --from=builder /app /app
RUN ln -s /app/ImportDataAsRelay /bin/run CMD ["/app/GetMoarFediverse"]
CMD ["/bin/run"]

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. 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' version: '2'
services: services:
importdata: importdata:
image: 'ghcr.io/g3rv4/importdataasrelay:latest' image: 'ghcr.io/g3rv4/getmoarfediverse:latest'
volumes: volumes:
- '/path/to/data:/data' - '/path/to/data:/data'
``` ```

View File

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

View File

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