From 54828b946971c4b00a0c5751183d5774bb5787c1 Mon Sep 17 00:00:00 2001 From: Gervasio Marchand Date: Mon, 5 Dec 2022 08:38:07 -0300 Subject: [PATCH] Rename! --- .github/workflows/build.yml | 6 +++--- Dockerfile | 5 ++--- README.md | 4 ++-- src/Config.cs | 2 +- src/{ImportDataAsRelay.csproj => GetMoarFediverse.csproj} | 0 src/Program.cs | 2 +- 6 files changed, 9 insertions(+), 10 deletions(-) rename src/{ImportDataAsRelay.csproj => GetMoarFediverse.csproj} (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 63c4462..d6729e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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" diff --git a/Dockerfile b/Dockerfile index 972ddca..a5692c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index 95fb407..e8afd61 100644 --- a/README.md +++ b/README.md @@ -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' ``` diff --git a/src/Config.cs b/src/Config.cs index 20f3b23..404a2b6 100644 --- a/src/Config.cs +++ b/src/Config.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using Jil; -namespace ImportDataAsRelay; +namespace GetMoarFediverse; public class Config { diff --git a/src/ImportDataAsRelay.csproj b/src/GetMoarFediverse.csproj similarity index 100% rename from src/ImportDataAsRelay.csproj rename to src/GetMoarFediverse.csproj diff --git a/src/Program.cs b/src/Program.cs index a1a2ccd..c5ae74b 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -1,5 +1,5 @@ using System.Collections.Concurrent; -using ImportDataAsRelay; +using GetMoarFediverse; using Jil; Config.Init(Environment.GetEnvironmentVariable("CONFIG_PATH"));