-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
73 additions
and
4 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 |
---|---|---|
|
@@ -9,6 +9,50 @@ on: | |
- cron: "0 1 * * 6" | ||
|
||
jobs: | ||
build-ubuntu-2404: | ||
name: Build Ubuntu 24.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Setup Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Build | ||
run: docker build -t gameservermanagers/steamcmd:ubuntu-24.04 -f ./Dockerfile.ubuntu-2404 . | ||
|
||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push (Ubuntu 24.04) | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: ./Dockerfile.ubuntu-2404 | ||
platforms: linux/amd64 | ||
push: true | ||
tags: | | ||
gameservermanagers/steamcmd:latest | ||
gameservermanagers/steamcmd:ubuntu | ||
gameservermanagers/steamcmd:ubuntu-24.04 | ||
ghcr.io/gameservermanagers/steamcmd:latest | ||
ghcr.io/gameservermanagers/steamcmd:ubuntu | ||
ghcr.io/gameservermanagers/steamcmd:ubuntu-24.04 | ||
build-ubuntu-2204: | ||
name: Build Ubuntu 22.04 | ||
runs-on: ubuntu-latest | ||
|
@@ -46,11 +90,7 @@ jobs: | |
platforms: linux/amd64 | ||
push: true | ||
tags: | | ||
gameservermanagers/steamcmd:latest | ||
gameservermanagers/steamcmd:ubuntu | ||
gameservermanagers/steamcmd:ubuntu-22.04 | ||
ghcr.io/gameservermanagers/steamcmd:latest | ||
ghcr.io/gameservermanagers/steamcmd:ubuntu | ||
ghcr.io/gameservermanagers/steamcmd:ubuntu-22.04 | ||
build-ubuntu-2004: | ||
|
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,28 @@ | ||
FROM ubuntu:24.04 | ||
|
||
LABEL maintainer="LinuxGSM <[email protected]>" | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
||
# Install SteamCMD | ||
RUN echo "**** Install SteamCMD ****" \ | ||
&& echo steam steam/question select "I AGREE" | debconf-set-selections \ | ||
&& echo steam steam/license note '' | debconf-set-selections \ | ||
&& dpkg --add-architecture i386 \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends ca-certificates locales lib32gcc-s1 libsdl2-2.0-0:i386 steamcmd \ | ||
&& ln -s /usr/games/steamcmd /usr/bin/steamcmd \ | ||
&& apt-get -y autoremove \ | ||
&& apt-get -y clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& rm -rf /tmp/* \ | ||
&& rm -rf /var/tmp/* | ||
|
||
# Add unicode support | ||
RUN locale-gen en_US.UTF-8 | ||
ENV LANG 'en_US.UTF-8' | ||
ENV LANGUAGE 'en_US:en' | ||
|
||
ENTRYPOINT ["steamcmd"] | ||
CMD ["+help", "+quit"] |
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