Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,21 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.102
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore DevryBot
- name: Build
run: dotnet build --no-restore --configuration Release --no-restore
- name: Login to Dockerhub
- name: Login to GHCR
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker Image
run: export TOKEN=${{ secrets.DISCORD_TOKEN }} && docker build --build-arg TOKEN -f DevryBot/Dockerfile -t mercenary9312/unofficial-devry-service-bot .
run: |
export TOKEN=${{ secrets.DISCORD_TOKEN }}
docker build --build-arg TOKEN -f DevryBot/Dockerfile -t ghcr.io/${{ github.repository }}:latest .
- name: Push Docker Image
run: docker push mercenary9312/unofficial-devry-service-bot
run: docker push ghcr.io/${{ github.repository }}:latest

3 changes: 1 addition & 2 deletions DevryBot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ RUN chmod --recursive +x /app/Data

# Python Snippet Scanner Requires the following items to be installed
RUN apt-get update
RUN apt-get install -y python3.7
RUN apt install -y python3-pip
RUN apt-get install -y python3 python3-pip
RUN pip3 install prospector[with_everything]

FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
Expand Down
4 changes: 2 additions & 2 deletions DevryBot/Install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ docker stop $DEVRY_CONTAINER_ID
# G E T L A T E S T D O C K E R I M A G E #
############################################################
echo "Getting the latest bot image..."
docker pull mercenary9312/unofficial-devry-service-bot
docker pull ghcr.io/unofficial-devry-it/devrycommunity:latest

############################################################
# S T A R T T E M P O R A R Y I M A G E
############################################################
echo "Starting temporary container..."
docker run --rm -d --name devry-service-bot mercenary9312/unofficial-devry-service-bot:latest
docker run --rm -d --name devry-service-bot ghcr.io/unofficial-devry-it/devrycommunity:latest

############################################################
# C R E A T I N G T E M P D I R
Expand Down
2 changes: 1 addition & 1 deletion DevryBot/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
devry-services:
environment:
TZ: "America/New_York"
image: "mercenary9312/unofficial-devry-service-bot"
image: "ghcr.io/unofficial-devry-it/devrycommunity:latest"
restart: "always"
volumes:
- devrydata:/app/Data:rw
Expand Down
Loading