forked from dworkin/dgd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Build and Publish to Github Container Registry | ||
|
||
on: | ||
push | ||
|
||
jobs: | ||
build_and_publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Login onto ghcr | ||
run: | | ||
docker login --username maldorne-bot --password ${{ secrets.MALDORNE_BOT_GHCR_TOKEN }} ghcr.io | ||
- name: Build image | ||
run: | | ||
docker build --no-cache . -t ghcr.io/maldorne/dgd:latest | ||
- name: Publish image | ||
run: | | ||
docker push ghcr.io/maldorne/dgd:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
# #### #### #### #### #### #### #### #### #### #### #### #### #### | ||
# build using debian bookworm (12) | ||
# #### #### #### #### #### #### #### #### #### #### #### #### #### | ||
|
||
FROM debian:12-slim | ||
|
||
# install needed tools | ||
RUN apt-get update && apt-get install -y --force-yes git make gcc clang bison | ||
|
||
# create group and user, with uids | ||
RUN groupadd -g 4200 mud | ||
RUN useradd -u 4201 -g 4200 -ms /bin/bash mud | ||
USER mud | ||
|
||
WORKDIR /opt/mud | ||
COPY --chown=mud:mud . /opt/mud/driver/ | ||
|
||
WORKDIR /opt/mud/driver/src | ||
RUN make clean | ||
RUN make | ||
RUN make install | ||
|
||
# let's copy the binary to the same directory as other images | ||
RUN cp -R /opt/mud/driver/bin/ /opt/mud/ | ||
|
||
WORKDIR /opt/mud/ | ||
|
||
# expose telnet mudos ports | ||
EXPOSE 5000/tcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters