mirror of
https://github.com/g3rv4/GetMoarFediverse.git
synced 2025-02-16 17:20:50 +01:00
Rename!
This commit is contained in:
parent
4434af951e
commit
54828b9469
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -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"
|
||||||
|
@ -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"]
|
|
||||||
|
@ -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'
|
||||||
```
|
```
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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"));
|
||||||
|
Loading…
Reference in New Issue
Block a user