-
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
4 changed files
with
96 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,44 @@ | ||
name: CSGO Master Workflow | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- csgo/** | ||
jobs: | ||
main: | ||
name: Build and push docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- version: "1.10.0" | ||
build_url: "https://sm.alliedmods.net/smdrop/1.10/sourcemod-1.10.0-git6482-linux.tar.gz" | ||
- version: "1.11.0" | ||
build_url: "https://sm.alliedmods.net/smdrop/1.11/sourcemod-1.11.0-git6911-linux.tar.gz" | ||
- version: "1.12.0" | ||
build_url: "https://sm.alliedmods.net/smdrop/1.12/sourcemod-1.12.0-git6925-linux.tar.gz" | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push to Docker Hub | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./csgo | ||
push: true | ||
tags: budziam/csgo:${{ matrix.version }} | ||
build-args: | | ||
BUILD_URL=${{ matrix.build_url }} |
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,48 @@ | ||
name: CS:GO Pull Request Workflow | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- csgo/** | ||
jobs: | ||
main: | ||
name: Build docker image | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- version: "1.10.0" | ||
build_url: "https://sm.alliedmods.net/smdrop/1.10/sourcemod-1.10.0-git6482-linux.tar.gz" | ||
# - version: "1.11.0" | ||
# build_url: "https://sm.alliedmods.net/smdrop/1.11/sourcemod-1.11.0-git6911-linux.tar.gz" | ||
# - version: "1.12.0" | ||
# build_url: "https://sm.alliedmods.net/smdrop/1.12/sourcemod-1.12.0-git6925-linux.tar.gz" | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get commit SHA | ||
id: vars | ||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push to Docker Hub | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./csgo | ||
push: true | ||
tags: budziam/csgo:${{ matrix.version }}-${{ steps.vars.outputs.sha_short }} | ||
build-args: | | ||
BUILD_URL=${{ matrix.build_url }} |
Empty file.
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,4 @@ | ||
FROM steamcmd/steamcmd:ubuntu-20 | ||
|
||
RUN mkdir /tmp/csgo | ||
RUN steamcmd +force_install_dir /tmp/csgo +login anonymous +app_update 740 validate +quit |