From a4299f635dc2f7baddd87ec163668a20d7e2e448 Mon Sep 17 00:00:00 2001 From: cswimr Date: Tue, 27 Aug 2024 13:54:14 -0400 Subject: [PATCH] bunch of changes - updated all mentions of seaswimmer or seaswimmtherfsh to my new username, cswimr - added a cron schedule to the build.yaml workflow - add dockerfiles for Red-DiscordBot --- .forgejo/workflows/build.yaml | 26 +++++++++++++++++++++----- GalaxyCogs/Dockerfile | 4 ++-- PyZipline/Dockerfile | 4 ++-- Red/full/Dockerfile | 5 +++++ Red/pylav/Dockerfile | 5 +++++ SeaCogs/Dockerfile | 4 ++-- 6 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 Red/full/Dockerfile create mode 100644 Red/pylav/Dockerfile diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 53ae113..149e4ae 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -1,9 +1,11 @@ -name: Docker Build +name: Actions on: push: branches: - main workflow_dispatch: + schedule: + - cron: '0 0 * * *' jobs: Build and Push Images: @@ -18,7 +20,7 @@ jobs: uses: actions/docker-login@v3 with: registry: www.coastalcommits.com - username: Seaswimmer + username: cswimr password: ${{ secrets.COASTALCOMMITSTOKEN }} - name: Build and push GalacticFactory image uses: actions/docker-build-push@v5 @@ -33,18 +35,32 @@ jobs: context: . file: ./GalaxyCogs/Dockerfile push: true - tags: www.coastalcommits.com/seaswimmer/actionscontainers-galaxycogs:latest + tags: www.coastalcommits.com/cswimr/actionscontainers-galaxycogs:latest - name: Build and push PyZipline image uses: actions/docker-build-push@v5 with: context: . file: ./PyZipline/Dockerfile push: true - tags: www.coastalcommits.com/seaswimmer/actionscontainers-pyzipline:latest + tags: www.coastalcommits.com/cswimr/actionscontainers-pyzipline:latest - name: Build and push SeaCogs image uses: actions/docker-build-push@v5 with: context: . file: ./SeaCogs/Dockerfile push: true - tags: www.coastalcommits.com/seaswimmer/actionscontainers-seacogs:latest + tags: www.coastalcommits.com/cswimr/actionscontainers-seacogs:latest + - name: Build and push Red full image + uses: actions/docker-build-push@v5 + with: + context: . + file: ./Red/full/Dockerfile + push: true + tags: www.coastalcommits.com/cswimr/red:full + - name: Build and push Red pylav image + uses: actions/docker-build-push@v5 + with: + context: . + file: ./Red/pylav/Dockerfile + push: true + tags: www.coastalcommits.com/cswimr/red:pylav diff --git a/GalaxyCogs/Dockerfile b/GalaxyCogs/Dockerfile index e043293..58dd17b 100644 --- a/GalaxyCogs/Dockerfile +++ b/GalaxyCogs/Dockerfile @@ -12,6 +12,6 @@ RUN poetry config virtualenvs.create false # Install dependencies -RUN curl -sSL https://www.coastalcommits.com/SeaswimmerTheFsh/GalaxyCogs/raw/branch/main/pyproject.toml -o pyproject.toml -RUN curl -sSL https://www.coastalcommits.com/SeaswimmerTheFsh/GalaxyCogs/raw/branch/main/poetry.lock -o poetry.lock +RUN curl -sSL https://www.coastalcommits.com/cswimr/GalaxyCogs/raw/branch/main/pyproject.toml -o pyproject.toml +RUN curl -sSL https://www.coastalcommits.com/cswimr/GalaxyCogs/raw/branch/main/poetry.lock -o poetry.lock RUN poetry install --with dev --no-root diff --git a/PyZipline/Dockerfile b/PyZipline/Dockerfile index ba7376c..4683ab1 100644 --- a/PyZipline/Dockerfile +++ b/PyZipline/Dockerfile @@ -46,6 +46,6 @@ RUN poetry config virtualenvs.create false # Install dependencies RUN python3.12 -m pip install -U click packaging colorama zipp distro importlib-metadata -RUN curl -sSL https://www.coastalcommits.com/SeaswimmerTheFsh/PyZipline/raw/branch/main/pyproject.toml -o pyproject.toml -RUN curl -sSL https://www.coastalcommits.com/SeaswimmerTheFsh/PyZipline/raw/branch/main/poetry.lock -o poetry.lock +RUN curl -sSL https://www.coastalcommits.com/cswimr/PyZipline/raw/branch/main/pyproject.toml -o pyproject.toml +RUN curl -sSL https://www.coastalcommits.com/cswimr/PyZipline/raw/branch/main/poetry.lock -o poetry.lock RUN poetry install --with dev --with docs --no-root diff --git a/Red/full/Dockerfile b/Red/full/Dockerfile new file mode 100644 index 0000000..e933a13 --- /dev/null +++ b/Red/full/Dockerfile @@ -0,0 +1,5 @@ +FROM phasecorex/red-discordbot:full + +RUN apt-get update && apt-get install -y --no-install-recommends curl dnsutils +RUN curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash +RUN apt-get install -y --no-install-recommends speedtest diff --git a/Red/pylav/Dockerfile b/Red/pylav/Dockerfile new file mode 100644 index 0000000..9265f91 --- /dev/null +++ b/Red/pylav/Dockerfile @@ -0,0 +1,5 @@ +FROM phasecorex/red-discordbot:extra-pylav + +RUN apt-get update && apt-get install -y --no-install-recommends curl dnsutils +RUN curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash +RUN apt-get install -y --no-install-recommends speedtest diff --git a/SeaCogs/Dockerfile b/SeaCogs/Dockerfile index 69839b1..5cc59d6 100644 --- a/SeaCogs/Dockerfile +++ b/SeaCogs/Dockerfile @@ -42,6 +42,6 @@ RUN poetry config virtualenvs.in-project true # Install dependencies -RUN curl -sSL https://www.coastalcommits.com/SeaswimmerTheFsh/SeaCogs/raw/branch/main/pyproject.toml -o pyproject.toml -RUN curl -sSL https://www.coastalcommits.com/SeaswimmerTheFsh/SeaCogs/raw/branch/main/poetry.lock -o poetry.lock +RUN curl -sSL https://www.coastalcommits.com/cswimr/SeaCogs/raw/branch/main/pyproject.toml -o pyproject.toml +RUN curl -sSL https://www.coastalcommits.com/cswimr/SeaCogs/raw/branch/main/poetry.lock -o poetry.lock RUN poetry install --with dev --with docs --no-root