3 changed files with 74 additions and 5 deletions
@ -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: |
|||
@ -135,7 +175,7 @@ jobs: |
|||
|
|||
package-cleanup: |
|||
name: Cleanup Old GitHub Packages |
|||
needs: [ build-ubuntu-1804, build-ubuntu-2004, build-ubuntu-2204 ] |
|||
needs: [ build-ubuntu-1804, build-ubuntu-2004, build-ubuntu-2204, build-ubuntu-2404 ] |
|||
runs-on: ubuntu-latest |
|||
steps: |
|||
- name: Delete Package Versions |
|||
|
@ -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"] |
Loading…
Reference in new issue