diff --git a/.generate/Generate-GameImageRepositoryReadme.ps1 b/.generate/Generate-GameImageRepositoryReadme.ps1 index e97c1bb2..324f3b00 100644 --- a/.generate/Generate-GameImageRepositoryReadme.ps1 +++ b/.generate/Generate-GameImageRepositoryReadme.ps1 @@ -98,41 +98,23 @@ $gameList | % { # Generate game image repository readme content $content = @" -| ``master`` | ``build`` | ``update`` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| ``master`` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag ``v`` | Size | -|:-:|:-:|:-:|:-:| -| $($_.FullName) | [``$RegistryNamespace/$($_.Name)``][$engine-$($_.Name)-dockerhub-link] | [![$engine-$($_.Name)-version-badge][]][$engine-$($_.Name)-metadata-link] | [![$engine-$($_.Name)-size-badge][]][$engine-$($_.Name)-metadata-link] | [![$engine-$($_.Name)-layers-badge][]][$engine-$($_.Name)-metadata-link] | +| Game | Image | Tag ``v`` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| $($_.FullName) | [``$RegistryNamespace/$($_.Name)``][$engine-$($_.Name)-dockerhub-link] | [![$engine-$($_.Name)-version-badge][]][$engine-$($_.Name)-metadata-link] | [![$engine-$($_.Name)-size-badge][]][$engine-$($_.Name)-metadata-link] | [![pipeline-gitlab-$engine-$($_.Name)-badge][]][pipeline-gitlab-$engine-$($_.Name)-link] | [$engine-$($_.Name)-dockerhub-link]: https://hub.docker.com/r/$RegistryNamespace/$($_.Name) [$engine-$($_.Name)-version-badge]: https://img.shields.io/docker/v/$RegistryNamespace/$($_.Name)/latest?label=&style=flat-square [$engine-$($_.Name)-size-badge]: https://img.shields.io/docker/image-size/$RegistryNamespace/$($_.Name)/latest?label=&style=flat-square [$engine-$($_.Name)-metadata-link]: https://hub.docker.com/r/$RegistryNamespace/$($_.Name)/tags +[pipeline-gitlab-$engine-$($_.Name)-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=$engine-$($_.Name)&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-$engine-$($_.Name)-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=$engine-$($_.Name) "@ $content $outFile = "$readmePath/$engine-$($_.Name).md" diff --git a/.github/workflows/ci-master-pr.yml b/.github/workflows/ci-master-pr.yml index 675ef033..113eba7f 100644 --- a/.github/workflows/ci-master-pr.yml +++ b/.github/workflows/ci-master-pr.yml @@ -53,6 +53,17 @@ jobs: run: | ./test/test-game-image-game-version.sh + test-generate-gitbranches: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Fetch all branches and tags + - name: Test + shell: pwsh + run: | + ./Generate-GitBranches.Tests.ps1 + update-draft-release: needs: - test-build-hlds diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..8049ad1d --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +/.* +!/.circleci +!/.github +!/.generate +!/.gitignore +!/.gitlab-ci.yml +!/.travis.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9fd778a3..07719052 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,24 +1,26 @@ stages: - build - - post-build + - notify build-image: stage: build - image: docker:20.10.18-git + image: docker:20.10.23-git # See: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-docker-in-docker # For stateless builds, a sidecar dockerd service is needed # For stateful builds (i.e. DOCKER_HOST=unix:///var/run/docker.sock mounted from the host), a sidecar dockerd service is not needed - # services: - # - docker:20.10.18-dind - rules: - - if: $CI_PIPELINE_SOURCE == "trigger" - - if: $CI_PIPELINE_SOURCE == "web" + services: + - docker:20.10.23-dind variables: DOCKER_DRIVER: overlay2 + # DOCKER_HOST: unix:///var/run/docker.sock # For stateful builds, uncomment this, or set it in CI/CD variables + rules: + # Run on all branches except master, when .trigger is added or modified + - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != "master" + changes: + - .trigger timeout: 120m script: - | - export PIPELINE="$CI_COMMIT_BRANCH" set +e ./build.sh if [ $? = 0 ]; then @@ -28,20 +30,22 @@ build-image: exit 1 fi artifacts: + name: .build.state-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHA paths: - .build.state when: always expire_in: never -send-notification: - stage: post-build - image: alpine:3.14.8 +notify: + stage: notify + image: alpine:3.15 rules: - - if: $CI_PIPELINE_SOURCE == "trigger" - - if: $CI_PIPELINE_SOURCE == "web" + # Run on all branches except master, when .trigger is added or modified + - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != "master" + changes: + - .trigger when: always + timeout: 5m script: - - | - apk add --no-cache curl - export X_CI_WEBHOOK_SECRET_HEADER="x-gitlab-webhook-secret: $X_GITLAB_WEBHOOK_SECRET" - ./notify.sh + - apk add --no-cache curl + - ./notify.sh diff --git a/Generate-GitBranches.Tests.ps1 b/Generate-GitBranches.Tests.ps1 new file mode 100644 index 00000000..04d2a001 --- /dev/null +++ b/Generate-GitBranches.Tests.ps1 @@ -0,0 +1,142 @@ +Get-Module Pester -ListAvailable + +Describe "Generate-GitBranches.ps1" { + + BeforeEach { + $testDrive = "TestDrive:" + $sourceRepo = $PSScriptRoot + + $games = Get-Content $PSScriptRoot/games.json -Encoding utf8 | ConvertFrom-Json -AsHashtable + $remote = 'origin' + $remoteUrl = git remote get-url $ + + $expectedFiles = @( + '.env' + '.gitignore' + '.gitlab-ci.yml' + '.state' + 'build.sh' + 'build/Dockerfile' + 'notify.sh' + 'update/Dockerfile' + ) + } + + AfterEach { + cd $sourceRepo + Remove-Item $testDrive/* -Recurse -Force + } + + It "Parameter validation" { + { + cd $PSScriptRoot + & ./Generate-GitBranches.ps1 -Repo '' -ErrorAction Stop + } | Should -Throw + } + + Context 'Same repo' { + + BeforeEach { + $sameRepo = "$testDrive/$( (Get-Item $sourceRepo).Name )" + Copy-Item $sourceRepo $sameRepo -Recurse -Force + cd $sameRepo + git config user.name "bot" + git config user.email "bot@example.com" + $branches = git branch | % { $_.Replace('*', '').Trim() } | ? { $_ -match '^steam-' } + foreach ($b in $branches) { + git branch -D $b + } + } + + It "Creates and updates branches of a same repo (dry-run)" { + $currentRef = git rev-parse --short HEAD + if ($LASTEXITCODE) { throw } + & ./Generate-GitBranches.ps1 -Repo . -ErrorAction Stop -WhatIf 6>$null # Create + git checkout $currentRef + & ./Generate-GitBranches.ps1 -Repo . -ErrorAction Stop -WhatIf 6>$null # Update + + cd $sameRepo + $branches = git branch | % { $_.Replace('*', '').Trim() } | ? { $_ -match '^steam-' } + $branches.Count | Should -Be 0 + } + + It "Creates and updates branches of a same repo" { + $currentRef = git rev-parse --short HEAD + if ($LASTEXITCODE) { throw } + & ./Generate-GitBranches.ps1 -Repo $sameRepo -ErrorAction Stop 6>$null # Create + git checkout $currentRef + & ./Generate-GitBranches.ps1 -Repo $sameRepo -ErrorAction Stop 6>$null # Update + + cd $sameRepo + $branches = git branch | % { $_.Replace('*', '').Trim() } | ? { $_ -match '^steam-' } + $branches.Count | Should -Be $games.Count + foreach ($b in $branches) { + git ls-tree -r --name-only $b | Should -Be $expectedFiles + } + } + + It "Creates and updates branches of a same repo of (one game)" { + & $sourceRepo/Generate-GitBranches.ps1 -Repo $sameRepo -GamePlatform steam -GameEngine hlds -Game valve -ErrorAction Stop 6>$null # Create + & $sourceRepo/Generate-GitBranches.ps1 -Repo $sameRepo -Remote $remote -Pull -GamePlatform steam -GameEngine hlds -Game valve -ErrorAction Stop 6>$null # Update + + cd $sameRepo + $branches = git branch | % { $_.Replace('*', '').Trim() } | ? { $_ -match '^steam-' } + $branches.Count | Should -Be 1 + foreach ($b in $branches) { + git ls-tree -r --name-only $b | Should -Be $expectedFiles + } + } + } + + Context 'Different repo' { + + BeforeEach { + $differentRepo = "$testDrive/$( (Get-Item $sourceRepo).Name )" + New-Item $differentRepo -ItemType Directory > $null + cd $differentRepo + git init --initial-branch master + git config user.name "bot" + git config user.email "bot@example.com" + git commit --allow-empty -m 'Init' + $branches = git branch | % { $_.Replace('*', '').Trim() } | ? { $_ -match '^steam-' } + foreach ($b in $branches) { + git branch -D $b + } + } + + It "Creates and updates branches of a different repo (dry-run)" { + & $sourceRepo/Generate-GitBranches.ps1 -Repo $differentRepo -ErrorAction Stop 6>$null -WhatIf # Create + & $sourceRepo/Generate-GitBranches.ps1 -Repo $differentRepo -ErrorAction Stop 6>$null -WhatIf # Update + + cd $differentRepo + $branches = git branch | % { $_.Replace('*', '').Trim() } | ? { $_ -match '^steam-' } + $branches.Count | Should -Be 0 + } + + It "Creates and updates branches of a different repo" { + & $sourceRepo/Generate-GitBranches.ps1 -Repo $differentRepo -ErrorAction Stop 6>$null # Create + & $sourceRepo/Generate-GitBranches.ps1 -Repo $differentRepo -ErrorAction Stop 6>$null # Update + + cd $differentRepo + $branches = git branch | % { $_.Replace('*', '').Trim() } | ? { $_ -match '^steam-' } + $branches.Count | Should -Be $games.Count + foreach ($b in $branches) { + git ls-tree -r --name-only $b | Should -Be $expectedFiles + } + } + + It "Creates and updates branches of a different repo (one game)" { + & $sourceRepo/Generate-GitBranches.ps1 -Repo $differentRepo -GamePlatform steam -GameEngine hlds -Game valve -ErrorAction Stop 6>$null # Create + & $sourceRepo/Generate-GitBranches.ps1 -Repo $differentRepo -GamePlatform steam -GameEngine hlds -Game valve -ErrorAction Stop 6>$null # Update + + cd $differentRepo + $branches = git branch | % { $_.Replace('*', '').Trim() } | ? { $_ -match '^steam-' } + $branches.Count | Should -Be 1 + foreach ($b in $branches) { + git ls-tree -r --name-only $b | Should -Be $expectedFiles + } + } + + } + +} diff --git a/Generate-GitBranches.ps1 b/Generate-GitBranches.ps1 new file mode 100644 index 00000000..45d15349 --- /dev/null +++ b/Generate-GitBranches.ps1 @@ -0,0 +1,287 @@ +<# +.SYNOPSIS +# 1. This script create / updates git branches (named --) based on games.json +# 2. By default it creates a git branch for each game found in games.json. To limit to one game, specify -GamePlatform, -GameEngine, and -Game +# 3. To build a game, checkout to its branch, edit .env, mutate .trigger, commit and push + +.EXAMPLE +# Create branches for all games (dry-run) +./Generate-GitBranches.ps1 -Repo . -WhatIf + +# Create branches for all games +./Generate-GitBranches.ps1 -Repo . + +# Create branches for all games, and push to git remote 'upstream' +./Generate-GitBranches.ps1 -Repo . -Remote upstream -Push + +# Create branches for specific game(s) +./Generate-GitBranches.ps1 -Repo . -Remote upstream -Push -GameEngine hlds -Game valve,cstrike +./Generate-GitBranches.ps1 -Repo . -Remote upstream -Push -GameEngine srcds -Game cs2,csgo + +# Create branches for specific game(s), and push to git remote 'upstream' +./Generate-GitBranches.ps1 -Repo . -Remote upstream -Push -GameEngine hlds -Game valve,cstrike +./Generate-GitBranches.ps1 -Repo . -Remote upstream -Push -GameEngine srcds -Game cs2,csgo + +.EXAMPLE +# Update branches for all games, pulling and pushing to git remote 'origin' +./Generate-GitBranches.ps1 -Repo . -Pull -Push + +# Update branches for all games, pulling and pushing to git remote 'upstream' +./Generate-GitBranches.ps1 -Repo . -Remote upstream -Pull -Push + +# Update branches for specific game(s), pulling and pushing to git remote 'origin' +./Generate-GitBranches.ps1 -Repo . -Pull -Push -GameEngine hlds -Game valve,cstrike +./Generate-GitBranches.ps1 -Repo . -Pull -Push -GameEngine srcds -Game cs2,csgo + +# Update branches for specific game(s), pulling and pushing to git remote 'origin' +./Generate-GitBranches.ps1 -Repo . -Remote upstream -Pull -Push -GameEngine hlds -Game valve,cstrike +./Generate-GitBranches.ps1 -Repo . -Remote upstream -Pull -Push -GameEngine srcds -Game cs2,csgo +#> +[CmdletBinding(SupportsShouldProcess)] +param ( + [Parameter(Mandatory,HelpMessage="Target repo path")] + [ValidateNotNullOrEmpty()] + [string]$Repo +, + [Parameter(HelpMessage="Git remote. Default: 'origin'")] + [string]$Remote = 'origin' +, + [Parameter(HelpMessage="Whether to pull changes from remote repo before creating / updating branches")] + [switch]$Pull +, + [Parameter(HelpMessage="Whether to push changes after creating / updating branches")] + [switch]$Push +, + [Parameter(HelpMessage="Game platform. E.g. 'steam'. If unspecified, all game platforms are selected.")] + [string[]]$GamePlatform +, + [Parameter(HelpMessage="Game engine. E.g. 'hlds' or 'srcds'. If unspecified, all game engines are selected.")] + [string[]]$GameEngine +, + [Parameter(HelpMessage="Game. E.g. 'cstrike'. If unspecified, all games are selected.")] + [string[]]$Game +) +Set-StrictMode -Version Latest +$ErrorActionPreference = 'Stop' +# $ErrorView = 'NormalView' + +# Get games +$games = Get-Content $PSScriptRoot/games.json -Encoding utf8 -Force | ConvertFrom-Json -AsHashtable +if ($GamePlatform) { + $games = $games | ? { $_['game_platform'] -in $GamePlatform } +} +if ($GameEngine) { + $games = $games | ? { $_['game_engine'] -in $GameEngine } +} +if ($Game) { + $games = $games | ? { $_['game'] -in $Game } +} +if ($games.Count -eq 0) { + throw "No games found" +} + +function Execute-Command { + [CmdletBinding(DefaultParameterSetName='Default',SupportsShouldProcess)] + param ( + [Parameter(Mandatory,ParameterSetName='Default',Position=0)] + [ValidateNotNull()] + [object]$Command + , + [Parameter(ValueFromPipeline,ParameterSetName='Pipeline')] + [object]$InputObject + ) + + process { + if ($InputObject) { + $Command = $InputObject + } + $scriptBlock = if ($Command -is [scriptblock]) { + $Command + }else { + # This is like Invoke-Expression, dangerous + [scriptblock]::Create($Command) + } + try { + "Command: $scriptBlock" | Write-Verbose + if ($PSCmdlet.ShouldProcess("$scriptBlock")) { + Invoke-Command $scriptBlock + } + "LASTEXITCODE: $global:LASTEXITCODE" | Write-Verbose + if ($ErrorActionPreference -eq 'Stop' -and $global:LASTEXITCODE) { + throw "Command exit code was $global:LASTEXITCODE. Command: $scriptBlock" + } + }catch { + if ($ErrorActionPreference -eq 'Stop') { + throw + } + if ($ErrorActionPreference -eq 'Continue') { + $_ | Write-Error -ErrorAction Continue + } + } + } +} + +function Get-EnvFileKv ($file, $branch) { + $ErrorActionPreference = 'Stop' + $kv = [ordered]@{} + $branchFiles = { git ls-tree -r --name-only $branch } | Execute-Command + if ($branchFiles -contains $file) { + $content = { git --no-pager show "${branch}:${file}" } | Execute-Command + $content | % { + if ($_ -match '^(\w+)=(.*)$') { + $kv[$matches[1]] = $matches[2] + }else { + throw "File '$file' is not in a valid k=v format. Invalid line: $_" + } + } + } + $kv +} + +$sourceRef = '' +$isSameRepo = $false +try { + try { + $sourceRepo = { cd $PSScriptRoot; git rev-parse --show-toplevel; cd - } | Execute-Command -WhatIf:$false # Execute this even if -WhatIf is passed + }catch { + throw "$PSScriptRoot is not a git repo. Create a repo using: git init -b master; git commit -m 'Init' --allow-empty" + } + $sourceRef = { git rev-parse --abbrev-ref HEAD } | Execute-Command + try { + $Repo = { cd $Repo; git rev-parse --show-toplevel; cd - } | Execute-Command -WhatIf:$false # Execute this even if -WhatIf is passed + }catch { + throw "$Repo is not a git repo. Create a repo using: git init -b master; git commit -m 'Init' --allow-empty" + } + $isSameRepo = if ($Repo -eq $sourceRepo) { $true } else { $false } + + Push-Location $Repo + foreach ($g in $games) { + $branch = "$( $g['game_platform'] )-$( $g['game_engine'] )-$( $g['game'] )" + + { git checkout -f master } | Execute-Command + if ($Pull) { + { git pull "$Remote" master } | Execute-Command + } + $existingBranch = { git rev-parse --verify $branch 2>$null } | Execute-Command -ErrorAction SilentlyContinue + if ($existingBranch) { + "Updating branch '$branch'" | Write-Host -ForegroundColor Green + if ($Pull) { + { git fetch "$Remote" } | Execute-Command + $existingRemoteBranch = { git rev-parse --verify "$Remote/$branch" 2>$null } | Execute-Command -ErrorAction SilentlyContinue + if ($existingRemoteBranch) { + { git branch -f $branch "$Remote/$branch" } | Execute-Command + } + } + { git checkout -f $branch } | Execute-Command + }else { + "Creating new branch '$branch'" | Write-Host -ForegroundColor Green + { git checkout -b $branch } | Execute-Command + } + + "Removing all tracked files" | Write-Host -ForegroundColor Green + # Get-ChildItem . -Exclude '.git' -Force | Remove-Item -Recurse -Force + { git ls-files } | Execute-Command -WhatIf:$false | Remove-Item -Recurse -Force + + "Checking out files" | Write-Host -ForegroundColor Green + if ($isSameRepo) { + { git checkout $sourceRef -- build } | Execute-Command + { git checkout $sourceRef -- update } | Execute-Command + { git checkout $sourceRef -- build.sh } | Execute-Command + { git checkout $sourceRef -- notify.sh } | Execute-Command + { git checkout $sourceRef -- .gitlab-ci.yml } | Execute-Command + }else { + Copy-Item $sourceRepo/build . -Recurse -Force + Copy-Item $sourceRepo/update . -Recurse -Force + Copy-Item $sourceRepo/build.sh . -Force + Copy-Item $sourceRepo/notify.sh . -Force + Copy-Item $sourceRepo/.gitlab-ci.yml . -Force + } + + $branchFiles = { git ls-tree -r --name-only $branch } | Execute-Command + + $kv = Get-EnvFileKv '.env' $branch + if ($kv.Keys.Count) { + "Updating .env" | Write-Host -ForegroundColor Green + }else { + "Creating .env'" | Write-Host -ForegroundColor Green + } + @" +PIPELINE=update +GAME_UPDATE_COUNT=$( if ($kv.Contains('GAME_UPDATE_COUNT')) { $kv['GAME_UPDATE_COUNT'] } else { $g['game_update_count'] } ) +GAME_VERSION=$( $g['game_version'] ) +APPID=$( $g['appid'] ) +CLIENT_APPID=$( $g['client_appid'] ) +GAME=$( $g['game'] ) +MOD=$( $g['mod'] ) +FIX_APPMANIFEST= +LATEST=true +CACHE= +NO_CACHE= +NO_PULL= +NO_TEST= +NO_PUSH= +DOCKER_REPOSITORY=$( $g['docker_repository'] ) +REGISTRY_USER= +REGISTRY_PASSWORD= +STEAM_LOGIN= +STEAM_USERNAME= +STEAM_PASSWORD= +"@ | Out-File .env -Encoding utf8 -Force + + $kv = Get-EnvFileKv '.state' $branch + if ($kv.Keys.Count) { + "Updating .state" | Write-Host -ForegroundColor Green + }else { + "Creating .state'" | Write-Host -ForegroundColor Green + } + @" +BUILD_STATUS=$( if ($kv.Contains('BUILD_STATUS')) { $kv['BUILD_STATUS'] } else { '' } ) +BUILD_EPOCH=$( if ($kv.Contains('BUILD_EPOCH')) { $kv['BUILD_EPOCH'] } else { '0' } ) +BASE_SIZE=$( if ($kv.Contains('BASE_SIZE')) { $kv['BASE_SIZE'] } else { '0' } ) +LAYERED_SIZE=$( if ($kv.Contains('LAYERED_SIZE')) { $kv['LAYERED_SIZE'] } else { '0' } ) +"@ | Out-File .state -Encoding utf8 -Force + + if ($branchFiles -contains '.trigger') { + "Using existing '.trigger'" | Write-Host -ForegroundColor Green + { git checkout "$branch" -- .trigger } | Execute-Command + } + + "Creating .gitignore" | Write-Host -ForegroundColor Green + @" +/* +!/build/ +/build/* +!/build/Dockerfile +!/update/ +/update/* +!/update/Dockerfile +!/.env +!/.gitignore +!/.gitlab-ci.yml +!/.state +!/.trigger +!/build.sh +!/notify.sh +"@ | Out-File .gitignore -Encoding utf8 -Force + + if (git status --porcelain 2>$null) { + "Committing files" | Write-Host -ForegroundColor Green + { git add . } | Execute-Command + $msg = if ($existingBranch) { "Update files" } else { "Add files" } + { git commit -m "$msg" } | Execute-Command + }else { + "Nothing to commit" | Write-Host -ForegroundColor Green + } + + if ($Push) { + { git push "$Remote" "$branch" } | Execute-Command + } + } +}catch { + throw +}finally { + if ($isSameRepo) { + { git checkout $sourceRef } | Execute-Command # Restore the source repo's ref + } + Pop-Location +} diff --git a/README.md b/README.md index 2eaf9d1a..6bdbde7b 100644 --- a/README.md +++ b/README.md @@ -2,33 +2,13 @@ [**Source**](https://developer.valvesoftware.com/wiki/Source) / [**Goldsource**](https://developer.valvesoftware.com/wiki/GoldSrc) dedicated server images built through use of [`steamcmd`](https://github.com/startersclan/docker-steamcmd). -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - ## Supported Tags * `latest` [(*/build/Dockerfile*)][dockerfile-build-link], [(*/update/Dockerfile*)][dockerfile-update-link] @@ -52,109 +32,141 @@ Dedicated servers hosted on Steam are usually required to be running the *latest ### Source Engine (SRCDS) -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Counter-Strike 2 | [`sourceservers/cs2`][srcds-cs2-dockerhub-link] | [![srcds-cs2-version-badge][]][srcds-cs2-metadata-link] | [![srcds-cs2-size-badge][]][srcds-cs2-metadata-link] | [![srcds-cs2-layers-badge][]][srcds-cs2-metadata-link] | -| Counter-Strike: Global Offensive | [`sourceservers/csgo`][srcds-csgo-dockerhub-link] | [![srcds-csgo-version-badge][]][srcds-csgo-metadata-link] | [![srcds-csgo-size-badge][]][srcds-csgo-metadata-link] | [![srcds-csgo-layers-badge][]][srcds-csgo-metadata-link] | -| Counter-Strike: Source | [`sourceservers/cstrike`][srcds-cstrike-dockerhub-link] | [![srcds-cstrike-version-badge][]][srcds-cstrike-metadata-link] | [![srcds-cstrike-size-badge][]][srcds-cstrike-metadata-link] | [![srcds-cstrike-layers-badge][]][srcds-cstrike-metadata-link] | -| Day of Defeat: Source | [`sourceservers/dod`][srcds-dod-dockerhub-link] | [![srcds-dod-version-badge][]][srcds-dod-metadata-link] | [![srcds-dod-size-badge][]][srcds-dod-metadata-link] | [![srcds-dod-layers-badge][]][srcds-dod-metadata-link] | -| Half-Life 2: Deathmatch | [`sourceservers/hl2mp`][srcds-hl2mp-dockerhub-link] | [![srcds-hl2mp-version-badge][]][srcds-hl2mp-metadata-link] | [![srcds-hl2mp-size-badge][]][srcds-hl2mp-metadata-link] | [![srcds-hl2mp-layers-badge][]][srcds-hl2mp-metadata-link] | -| Left 4 Dead | [`sourceservers/left4dead`][srcds-left4dead-dockerhub-link] | [![srcds-left4dead-version-badge][]][srcds-left4dead-metadata-link] | [![srcds-left4dead-size-badge][]][srcds-left4dead-metadata-link] | [![srcds-left4dead-layers-badge][]][srcds-left4dead-metadata-link] | -| Left 4 Dead 2 | [`sourceservers/left4dead2`][srcds-left4dead2-dockerhub-link] | [![srcds-left4dead2-version-badge][]][srcds-left4dead2-metadata-link] | [![srcds-left4dead2-size-badge][]][srcds-left4dead2-metadata-link] | [![srcds-left4dead2-layers-badge][]][srcds-left4dead2-metadata-link] | -| Team Fortress 2 | [`sourceservers/tf`][srcds-tf-dockerhub-link] | [![srcds-tf-version-badge][]][srcds-tf-metadata-link] | [![srcds-tf-size-badge][]][srcds-tf-metadata-link] | [![srcds-tf-layers-badge][]][srcds-tf-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Counter-Strike 2 | [`sourceservers/cs2`][srcds-cs2-dockerhub-link] | [![srcds-cs2-version-badge][]][srcds-cs2-metadata-link] | [![srcds-cs2-size-badge][]][srcds-cs2-metadata-link] | [![pipeline-gitlab-srcds-cs2-badge][]][pipeline-gitlab-srcds-cs2-link] | +| Counter-Strike: Global Offensive | [`sourceservers/csgo`][srcds-csgo-dockerhub-link] | [![srcds-csgo-version-badge][]][srcds-csgo-metadata-link] | [![srcds-csgo-size-badge][]][srcds-csgo-metadata-link] | [![pipeline-gitlab-srcds-csgo-badge][]][pipeline-gitlab-srcds-csgo-link] | +| Counter-Strike: Source | [`sourceservers/cstrike`][srcds-cstrike-dockerhub-link] | [![srcds-cstrike-version-badge][]][srcds-cstrike-metadata-link] | [![srcds-cstrike-size-badge][]][srcds-cstrike-metadata-link] | [![pipeline-gitlab-srcds-cstrike-badge][]][pipeline-gitlab-srcds-cstrike-link] | +| Day of Defeat: Source | [`sourceservers/dod`][srcds-dod-dockerhub-link] | [![srcds-dod-version-badge][]][srcds-dod-metadata-link] | [![srcds-dod-size-badge][]][srcds-dod-metadata-link] | [![pipeline-gitlab-srcds-dod-badge][]][pipeline-gitlab-srcds-dod-link] | +| Half-Life 2: Deathmatch | [`sourceservers/hl2mp`][srcds-hl2mp-dockerhub-link] | [![srcds-hl2mp-version-badge][]][srcds-hl2mp-metadata-link] | [![srcds-hl2mp-size-badge][]][srcds-hl2mp-metadata-link] | [![pipeline-gitlab-srcds-hl2mp-badge][]][pipeline-gitlab-srcds-hl2mp-link] | +| Left 4 Dead | [`sourceservers/left4dead`][srcds-left4dead-dockerhub-link] | [![srcds-left4dead-version-badge][]][srcds-left4dead-metadata-link] | [![srcds-left4dead-size-badge][]][srcds-left4dead-metadata-link] | [![pipeline-gitlab-srcds-left4dead-badge][]][pipeline-gitlab-srcds-left4dead-link] | +| Left 4 Dead 2 | [`sourceservers/left4dead2`][srcds-left4dead2-dockerhub-link] | [![srcds-left4dead2-version-badge][]][srcds-left4dead2-metadata-link] | [![srcds-left4dead2-size-badge][]][srcds-left4dead2-metadata-link] | [![pipeline-gitlab-srcds-left4dead2-badge][]][pipeline-gitlab-srcds-left4dead2-link] | +| Team Fortress 2 | [`sourceservers/tf`][srcds-tf-dockerhub-link] | [![srcds-tf-version-badge][]][srcds-tf-metadata-link] | [![srcds-tf-size-badge][]][srcds-tf-metadata-link] | [![pipeline-gitlab-srcds-tf-badge][]][pipeline-gitlab-srcds-tf-link] | [srcds-cs2-dockerhub-link]: https://hub.docker.com/r/sourceservers/cs2 [srcds-cs2-version-badge]: https://img.shields.io/docker/v/sourceservers/cs2/latest?label=&style=flat-square [srcds-cs2-size-badge]: https://img.shields.io/docker/image-size/sourceservers/cs2/latest?label=&style=flat-square [srcds-cs2-metadata-link]: https://hub.docker.com/r/sourceservers/cs2/tags +[pipeline-gitlab-srcds-cs2-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-cs2&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-cs2-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-cs2 [srcds-csgo-dockerhub-link]: https://hub.docker.com/r/sourceservers/csgo [srcds-csgo-version-badge]: https://img.shields.io/docker/v/sourceservers/csgo/latest?label=&style=flat-square [srcds-csgo-size-badge]: https://img.shields.io/docker/image-size/sourceservers/csgo/latest?label=&style=flat-square [srcds-csgo-metadata-link]: https://hub.docker.com/r/sourceservers/csgo/tags +[pipeline-gitlab-srcds-csgo-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-csgo&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-csgo-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-csgo [srcds-cstrike-dockerhub-link]: https://hub.docker.com/r/sourceservers/cstrike [srcds-cstrike-version-badge]: https://img.shields.io/docker/v/sourceservers/cstrike/latest?label=&style=flat-square [srcds-cstrike-size-badge]: https://img.shields.io/docker/image-size/sourceservers/cstrike/latest?label=&style=flat-square [srcds-cstrike-metadata-link]: https://hub.docker.com/r/sourceservers/cstrike/tags +[pipeline-gitlab-srcds-cstrike-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-cstrike&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-cstrike-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-cstrike [srcds-dod-dockerhub-link]: https://hub.docker.com/r/sourceservers/dod [srcds-dod-version-badge]: https://img.shields.io/docker/v/sourceservers/dod/latest?label=&style=flat-square [srcds-dod-size-badge]: https://img.shields.io/docker/image-size/sourceservers/dod/latest?label=&style=flat-square [srcds-dod-metadata-link]: https://hub.docker.com/r/sourceservers/dod/tags +[pipeline-gitlab-srcds-dod-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-dod&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-dod-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-dod [srcds-hl2mp-dockerhub-link]: https://hub.docker.com/r/sourceservers/hl2mp [srcds-hl2mp-version-badge]: https://img.shields.io/docker/v/sourceservers/hl2mp/latest?label=&style=flat-square [srcds-hl2mp-size-badge]: https://img.shields.io/docker/image-size/sourceservers/hl2mp/latest?label=&style=flat-square [srcds-hl2mp-metadata-link]: https://hub.docker.com/r/sourceservers/hl2mp/tags +[pipeline-gitlab-srcds-hl2mp-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-hl2mp&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-hl2mp-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-hl2mp [srcds-left4dead-dockerhub-link]: https://hub.docker.com/r/sourceservers/left4dead [srcds-left4dead-version-badge]: https://img.shields.io/docker/v/sourceservers/left4dead/latest?label=&style=flat-square [srcds-left4dead-size-badge]: https://img.shields.io/docker/image-size/sourceservers/left4dead/latest?label=&style=flat-square [srcds-left4dead-metadata-link]: https://hub.docker.com/r/sourceservers/left4dead/tags +[pipeline-gitlab-srcds-left4dead-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-left4dead&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-left4dead-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-left4dead [srcds-left4dead2-dockerhub-link]: https://hub.docker.com/r/sourceservers/left4dead2 [srcds-left4dead2-version-badge]: https://img.shields.io/docker/v/sourceservers/left4dead2/latest?label=&style=flat-square [srcds-left4dead2-size-badge]: https://img.shields.io/docker/image-size/sourceservers/left4dead2/latest?label=&style=flat-square [srcds-left4dead2-metadata-link]: https://hub.docker.com/r/sourceservers/left4dead2/tags +[pipeline-gitlab-srcds-left4dead2-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-left4dead2&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-left4dead2-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-left4dead2 [srcds-tf-dockerhub-link]: https://hub.docker.com/r/sourceservers/tf [srcds-tf-version-badge]: https://img.shields.io/docker/v/sourceservers/tf/latest?label=&style=flat-square [srcds-tf-size-badge]: https://img.shields.io/docker/image-size/sourceservers/tf/latest?label=&style=flat-square [srcds-tf-metadata-link]: https://hub.docker.com/r/sourceservers/tf/tags +[pipeline-gitlab-srcds-tf-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-tf&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-tf-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-tf ### Goldsource Engine (HLDS) -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Counter-Strike 1.6 | [`goldsourceservers/cstrike`][hlds-cstrike-dockerhub-link] | [![hlds-cstrike-version-badge][]][hlds-cstrike-metadata-link] | [![hlds-cstrike-size-badge][]][hlds-cstrike-metadata-link] | [![hlds-cstrike-layers-badge][]][hlds-cstrike-metadata-link] | -| Counter-Strike: Condition Zero | [`goldsourceservers/czero`][hlds-czero-dockerhub-link] | [![hlds-czero-version-badge][]][hlds-czero-metadata-link] | [![hlds-czero-size-badge][]][hlds-czero-metadata-link] | [![hlds-czero-layers-badge][]][hlds-czero-metadata-link] | -| Deathmatch Classic | [`goldsourceservers/dmc`][hlds-dmc-dockerhub-link] | [![hlds-dmc-version-badge][]][hlds-dmc-metadata-link] | [![hlds-dmc-size-badge][]][hlds-dmc-metadata-link] | [![hlds-dmc-layers-badge][]][hlds-dmc-metadata-link] | -| Day of Defeat | [`goldsourceservers/dod`][hlds-dod-dockerhub-link] | [![hlds-dod-version-badge][]][hlds-dod-metadata-link] | [![hlds-dod-size-badge][]][hlds-dod-metadata-link] | [![hlds-dod-layers-badge][]][hlds-dod-metadata-link] | -| Opposing Force | [`goldsourceservers/gearbox`][hlds-gearbox-dockerhub-link] | [![hlds-gearbox-version-badge][]][hlds-gearbox-metadata-link] | [![hlds-gearbox-size-badge][]][hlds-gearbox-metadata-link] | [![hlds-gearbox-layers-badge][]][hlds-gearbox-metadata-link] | -| Ricochet | [`goldsourceservers/ricochet`][hlds-ricochet-dockerhub-link] | [![hlds-ricochet-version-badge][]][hlds-ricochet-metadata-link] | [![hlds-ricochet-size-badge][]][hlds-ricochet-metadata-link] | [![hlds-ricochet-layers-badge][]][hlds-ricochet-metadata-link] | -| Team Fortress Classic | [`goldsourceservers/tfc`][hlds-tfc-dockerhub-link] | [![hlds-tfc-version-badge][]][hlds-tfc-metadata-link] | [![hlds-tfc-size-badge][]][hlds-tfc-metadata-link] | [![hlds-tfc-layers-badge][]][hlds-tfc-metadata-link] | -| Half-Life | [`goldsourceservers/valve`][hlds-valve-dockerhub-link] | [![hlds-valve-version-badge][]][hlds-valve-metadata-link] | [![hlds-valve-size-badge][]][hlds-valve-metadata-link] | [![hlds-valve-layers-badge][]][hlds-valve-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Counter-Strike 1.6 | [`goldsourceservers/cstrike`][hlds-cstrike-dockerhub-link] | [![hlds-cstrike-version-badge][]][hlds-cstrike-metadata-link] | [![hlds-cstrike-size-badge][]][hlds-cstrike-metadata-link] | [![pipeline-gitlab-hlds-cstrike-badge][]][pipeline-gitlab-hlds-cstrike-link] | +| Counter-Strike: Condition Zero | [`goldsourceservers/czero`][hlds-czero-dockerhub-link] | [![hlds-czero-version-badge][]][hlds-czero-metadata-link] | [![hlds-czero-size-badge][]][hlds-czero-metadata-link] | [![pipeline-gitlab-hlds-czero-badge][]][pipeline-gitlab-hlds-czero-link] | +| Deathmatch Classic | [`goldsourceservers/dmc`][hlds-dmc-dockerhub-link] | [![hlds-dmc-version-badge][]][hlds-dmc-metadata-link] | [![hlds-dmc-size-badge][]][hlds-dmc-metadata-link] | [![pipeline-gitlab-hlds-dmc-badge][]][pipeline-gitlab-hlds-dmc-link] | +| Day of Defeat | [`goldsourceservers/dod`][hlds-dod-dockerhub-link] | [![hlds-dod-version-badge][]][hlds-dod-metadata-link] | [![hlds-dod-size-badge][]][hlds-dod-metadata-link] | [![pipeline-gitlab-hlds-dod-badge][]][pipeline-gitlab-hlds-dod-link] | +| Opposing Force | [`goldsourceservers/gearbox`][hlds-gearbox-dockerhub-link] | [![hlds-gearbox-version-badge][]][hlds-gearbox-metadata-link] | [![hlds-gearbox-size-badge][]][hlds-gearbox-metadata-link] | [![pipeline-gitlab-hlds-gearbox-badge][]][pipeline-gitlab-hlds-gearbox-link] | +| Ricochet | [`goldsourceservers/ricochet`][hlds-ricochet-dockerhub-link] | [![hlds-ricochet-version-badge][]][hlds-ricochet-metadata-link] | [![hlds-ricochet-size-badge][]][hlds-ricochet-metadata-link] | [![pipeline-gitlab-hlds-ricochet-badge][]][pipeline-gitlab-hlds-ricochet-link] | +| Team Fortress Classic | [`goldsourceservers/tfc`][hlds-tfc-dockerhub-link] | [![hlds-tfc-version-badge][]][hlds-tfc-metadata-link] | [![hlds-tfc-size-badge][]][hlds-tfc-metadata-link] | [![pipeline-gitlab-hlds-tfc-badge][]][pipeline-gitlab-hlds-tfc-link] | +| Half-Life | [`goldsourceservers/valve`][hlds-valve-dockerhub-link] | [![hlds-valve-version-badge][]][hlds-valve-metadata-link] | [![hlds-valve-size-badge][]][hlds-valve-metadata-link] | [![pipeline-gitlab-hlds-valve-badge][]][pipeline-gitlab-hlds-valve-link] | [hlds-cstrike-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/cstrike [hlds-cstrike-version-badge]: https://img.shields.io/docker/v/goldsourceservers/cstrike/latest?label=&style=flat-square [hlds-cstrike-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/cstrike/latest?label=&style=flat-square [hlds-cstrike-metadata-link]: https://hub.docker.com/r/goldsourceservers/cstrike/tags +[pipeline-gitlab-hlds-cstrike-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-cstrike&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-cstrike-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-cstrike [hlds-czero-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/czero [hlds-czero-version-badge]: https://img.shields.io/docker/v/goldsourceservers/czero/latest?label=&style=flat-square [hlds-czero-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/czero/latest?label=&style=flat-square [hlds-czero-metadata-link]: https://hub.docker.com/r/goldsourceservers/czero/tags +[pipeline-gitlab-hlds-czero-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-czero&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-czero-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-czero [hlds-dmc-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/dmc [hlds-dmc-version-badge]: https://img.shields.io/docker/v/goldsourceservers/dmc/latest?label=&style=flat-square [hlds-dmc-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/dmc/latest?label=&style=flat-square [hlds-dmc-metadata-link]: https://hub.docker.com/r/goldsourceservers/dmc/tags +[pipeline-gitlab-hlds-dmc-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-dmc&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-dmc-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-dmc [hlds-dod-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/dod [hlds-dod-version-badge]: https://img.shields.io/docker/v/goldsourceservers/dod/latest?label=&style=flat-square [hlds-dod-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/dod/latest?label=&style=flat-square [hlds-dod-metadata-link]: https://hub.docker.com/r/goldsourceservers/dod/tags +[pipeline-gitlab-hlds-dod-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-dod&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-dod-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-dod [hlds-gearbox-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/gearbox [hlds-gearbox-version-badge]: https://img.shields.io/docker/v/goldsourceservers/gearbox/latest?label=&style=flat-square [hlds-gearbox-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/gearbox/latest?label=&style=flat-square [hlds-gearbox-metadata-link]: https://hub.docker.com/r/goldsourceservers/gearbox/tags +[pipeline-gitlab-hlds-gearbox-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-gearbox&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-gearbox-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-gearbox [hlds-ricochet-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/ricochet [hlds-ricochet-version-badge]: https://img.shields.io/docker/v/goldsourceservers/ricochet/latest?label=&style=flat-square [hlds-ricochet-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/ricochet/latest?label=&style=flat-square [hlds-ricochet-metadata-link]: https://hub.docker.com/r/goldsourceservers/ricochet/tags +[pipeline-gitlab-hlds-ricochet-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-ricochet&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-ricochet-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-ricochet [hlds-tfc-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/tfc [hlds-tfc-version-badge]: https://img.shields.io/docker/v/goldsourceservers/tfc/latest?label=&style=flat-square [hlds-tfc-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/tfc/latest?label=&style=flat-square [hlds-tfc-metadata-link]: https://hub.docker.com/r/goldsourceservers/tfc/tags +[pipeline-gitlab-hlds-tfc-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-tfc&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-tfc-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-tfc [hlds-valve-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/valve [hlds-valve-version-badge]: https://img.shields.io/docker/v/goldsourceservers/valve/latest?label=&style=flat-square [hlds-valve-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/valve/latest?label=&style=flat-square [hlds-valve-metadata-link]: https://hub.docker.com/r/goldsourceservers/valve/tags +[pipeline-gitlab-hlds-valve-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-valve&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-valve-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-valve ## Image Info @@ -176,7 +188,7 @@ Build cache is used where possible to minimize update durations. ### Build history -The project uses multiple CI services for its build jobs. You can find the history of past build jobs by clicking on their corresponding [build status badges](#docker-sourceservers). +The project uses multiple CI services for its build jobs. You can find the history of past build jobs by clicking on their corresponding [build status badges](##source-engine-srcds). ## Usage diff --git a/build.sh b/build.sh index 5d8547ef..572ee24f 100755 --- a/build.sh +++ b/build.sh @@ -199,6 +199,10 @@ COMMIT_SHA=$( git rev-parse HEAD ) date -Iseconds +# Display docker env vars +echo "DOCKER_HOST: ${DOCKER_HOST:-}" +echo "DOCKER_BUILDKIT: ${DOCKER_BUILDKIT:-}" + # Display pipeline echo "PIPELINE: $PIPELINE" diff --git a/docs/image/readme/hlds-cstrike.md b/docs/image/readme/hlds-cstrike.md index 4b0e30af..a4992741 100644 --- a/docs/image/readme/hlds-cstrike.md +++ b/docs/image/readme/hlds-cstrike.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Counter-Strike 1.6 | [`goldsourceservers/cstrike`][hlds-cstrike-dockerhub-link] | [![hlds-cstrike-version-badge][]][hlds-cstrike-metadata-link] | [![hlds-cstrike-size-badge][]][hlds-cstrike-metadata-link] | [![hlds-cstrike-layers-badge][]][hlds-cstrike-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Counter-Strike 1.6 | [`goldsourceservers/cstrike`][hlds-cstrike-dockerhub-link] | [![hlds-cstrike-version-badge][]][hlds-cstrike-metadata-link] | [![hlds-cstrike-size-badge][]][hlds-cstrike-metadata-link] | [![pipeline-gitlab-hlds-cstrike-badge][]][pipeline-gitlab-hlds-cstrike-link] | [hlds-cstrike-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/cstrike [hlds-cstrike-version-badge]: https://img.shields.io/docker/v/goldsourceservers/cstrike/latest?label=&style=flat-square [hlds-cstrike-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/cstrike/latest?label=&style=flat-square [hlds-cstrike-metadata-link]: https://hub.docker.com/r/goldsourceservers/cstrike/tags +[pipeline-gitlab-hlds-cstrike-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-cstrike&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-cstrike-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-cstrike diff --git a/docs/image/readme/hlds-czero.md b/docs/image/readme/hlds-czero.md index 46e4bb91..fa74cc3e 100644 --- a/docs/image/readme/hlds-czero.md +++ b/docs/image/readme/hlds-czero.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Counter-Strike: Condition Zero | [`goldsourceservers/czero`][hlds-czero-dockerhub-link] | [![hlds-czero-version-badge][]][hlds-czero-metadata-link] | [![hlds-czero-size-badge][]][hlds-czero-metadata-link] | [![hlds-czero-layers-badge][]][hlds-czero-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Counter-Strike: Condition Zero | [`goldsourceservers/czero`][hlds-czero-dockerhub-link] | [![hlds-czero-version-badge][]][hlds-czero-metadata-link] | [![hlds-czero-size-badge][]][hlds-czero-metadata-link] | [![pipeline-gitlab-hlds-czero-badge][]][pipeline-gitlab-hlds-czero-link] | [hlds-czero-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/czero [hlds-czero-version-badge]: https://img.shields.io/docker/v/goldsourceservers/czero/latest?label=&style=flat-square [hlds-czero-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/czero/latest?label=&style=flat-square [hlds-czero-metadata-link]: https://hub.docker.com/r/goldsourceservers/czero/tags +[pipeline-gitlab-hlds-czero-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-czero&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-czero-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-czero diff --git a/docs/image/readme/hlds-dmc.md b/docs/image/readme/hlds-dmc.md index a3a29b06..25ace5d5 100644 --- a/docs/image/readme/hlds-dmc.md +++ b/docs/image/readme/hlds-dmc.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Deathmatch Classic | [`goldsourceservers/dmc`][hlds-dmc-dockerhub-link] | [![hlds-dmc-version-badge][]][hlds-dmc-metadata-link] | [![hlds-dmc-size-badge][]][hlds-dmc-metadata-link] | [![hlds-dmc-layers-badge][]][hlds-dmc-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Deathmatch Classic | [`goldsourceservers/dmc`][hlds-dmc-dockerhub-link] | [![hlds-dmc-version-badge][]][hlds-dmc-metadata-link] | [![hlds-dmc-size-badge][]][hlds-dmc-metadata-link] | [![pipeline-gitlab-hlds-dmc-badge][]][pipeline-gitlab-hlds-dmc-link] | [hlds-dmc-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/dmc [hlds-dmc-version-badge]: https://img.shields.io/docker/v/goldsourceservers/dmc/latest?label=&style=flat-square [hlds-dmc-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/dmc/latest?label=&style=flat-square [hlds-dmc-metadata-link]: https://hub.docker.com/r/goldsourceservers/dmc/tags +[pipeline-gitlab-hlds-dmc-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-dmc&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-dmc-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-dmc diff --git a/docs/image/readme/hlds-dod.md b/docs/image/readme/hlds-dod.md index f96f0556..79fb6606 100644 --- a/docs/image/readme/hlds-dod.md +++ b/docs/image/readme/hlds-dod.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Day of Defeat | [`goldsourceservers/dod`][hlds-dod-dockerhub-link] | [![hlds-dod-version-badge][]][hlds-dod-metadata-link] | [![hlds-dod-size-badge][]][hlds-dod-metadata-link] | [![hlds-dod-layers-badge][]][hlds-dod-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Day of Defeat | [`goldsourceservers/dod`][hlds-dod-dockerhub-link] | [![hlds-dod-version-badge][]][hlds-dod-metadata-link] | [![hlds-dod-size-badge][]][hlds-dod-metadata-link] | [![pipeline-gitlab-hlds-dod-badge][]][pipeline-gitlab-hlds-dod-link] | [hlds-dod-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/dod [hlds-dod-version-badge]: https://img.shields.io/docker/v/goldsourceservers/dod/latest?label=&style=flat-square [hlds-dod-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/dod/latest?label=&style=flat-square [hlds-dod-metadata-link]: https://hub.docker.com/r/goldsourceservers/dod/tags +[pipeline-gitlab-hlds-dod-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-dod&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-dod-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-dod diff --git a/docs/image/readme/hlds-gearbox.md b/docs/image/readme/hlds-gearbox.md index ae7348fd..465e1bee 100644 --- a/docs/image/readme/hlds-gearbox.md +++ b/docs/image/readme/hlds-gearbox.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Opposing Force | [`goldsourceservers/gearbox`][hlds-gearbox-dockerhub-link] | [![hlds-gearbox-version-badge][]][hlds-gearbox-metadata-link] | [![hlds-gearbox-size-badge][]][hlds-gearbox-metadata-link] | [![hlds-gearbox-layers-badge][]][hlds-gearbox-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Opposing Force | [`goldsourceservers/gearbox`][hlds-gearbox-dockerhub-link] | [![hlds-gearbox-version-badge][]][hlds-gearbox-metadata-link] | [![hlds-gearbox-size-badge][]][hlds-gearbox-metadata-link] | [![pipeline-gitlab-hlds-gearbox-badge][]][pipeline-gitlab-hlds-gearbox-link] | [hlds-gearbox-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/gearbox [hlds-gearbox-version-badge]: https://img.shields.io/docker/v/goldsourceservers/gearbox/latest?label=&style=flat-square [hlds-gearbox-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/gearbox/latest?label=&style=flat-square [hlds-gearbox-metadata-link]: https://hub.docker.com/r/goldsourceservers/gearbox/tags +[pipeline-gitlab-hlds-gearbox-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-gearbox&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-gearbox-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-gearbox diff --git a/docs/image/readme/hlds-ricochet.md b/docs/image/readme/hlds-ricochet.md index 2d85101c..b4f89e63 100644 --- a/docs/image/readme/hlds-ricochet.md +++ b/docs/image/readme/hlds-ricochet.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Ricochet | [`goldsourceservers/ricochet`][hlds-ricochet-dockerhub-link] | [![hlds-ricochet-version-badge][]][hlds-ricochet-metadata-link] | [![hlds-ricochet-size-badge][]][hlds-ricochet-metadata-link] | [![hlds-ricochet-layers-badge][]][hlds-ricochet-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Ricochet | [`goldsourceservers/ricochet`][hlds-ricochet-dockerhub-link] | [![hlds-ricochet-version-badge][]][hlds-ricochet-metadata-link] | [![hlds-ricochet-size-badge][]][hlds-ricochet-metadata-link] | [![pipeline-gitlab-hlds-ricochet-badge][]][pipeline-gitlab-hlds-ricochet-link] | [hlds-ricochet-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/ricochet [hlds-ricochet-version-badge]: https://img.shields.io/docker/v/goldsourceservers/ricochet/latest?label=&style=flat-square [hlds-ricochet-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/ricochet/latest?label=&style=flat-square [hlds-ricochet-metadata-link]: https://hub.docker.com/r/goldsourceservers/ricochet/tags +[pipeline-gitlab-hlds-ricochet-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-ricochet&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-ricochet-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-ricochet diff --git a/docs/image/readme/hlds-tfc.md b/docs/image/readme/hlds-tfc.md index 08f81ce2..d2b78771 100644 --- a/docs/image/readme/hlds-tfc.md +++ b/docs/image/readme/hlds-tfc.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Team Fortress Classic | [`goldsourceservers/tfc`][hlds-tfc-dockerhub-link] | [![hlds-tfc-version-badge][]][hlds-tfc-metadata-link] | [![hlds-tfc-size-badge][]][hlds-tfc-metadata-link] | [![hlds-tfc-layers-badge][]][hlds-tfc-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Team Fortress Classic | [`goldsourceservers/tfc`][hlds-tfc-dockerhub-link] | [![hlds-tfc-version-badge][]][hlds-tfc-metadata-link] | [![hlds-tfc-size-badge][]][hlds-tfc-metadata-link] | [![pipeline-gitlab-hlds-tfc-badge][]][pipeline-gitlab-hlds-tfc-link] | [hlds-tfc-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/tfc [hlds-tfc-version-badge]: https://img.shields.io/docker/v/goldsourceservers/tfc/latest?label=&style=flat-square [hlds-tfc-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/tfc/latest?label=&style=flat-square [hlds-tfc-metadata-link]: https://hub.docker.com/r/goldsourceservers/tfc/tags +[pipeline-gitlab-hlds-tfc-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-tfc&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-tfc-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-tfc diff --git a/docs/image/readme/hlds-valve.md b/docs/image/readme/hlds-valve.md index 50f4bf80..c41ac099 100644 --- a/docs/image/readme/hlds-valve.md +++ b/docs/image/readme/hlds-valve.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Half-Life | [`goldsourceservers/valve`][hlds-valve-dockerhub-link] | [![hlds-valve-version-badge][]][hlds-valve-metadata-link] | [![hlds-valve-size-badge][]][hlds-valve-metadata-link] | [![hlds-valve-layers-badge][]][hlds-valve-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Half-Life | [`goldsourceservers/valve`][hlds-valve-dockerhub-link] | [![hlds-valve-version-badge][]][hlds-valve-metadata-link] | [![hlds-valve-size-badge][]][hlds-valve-metadata-link] | [![pipeline-gitlab-hlds-valve-badge][]][pipeline-gitlab-hlds-valve-link] | [hlds-valve-dockerhub-link]: https://hub.docker.com/r/goldsourceservers/valve [hlds-valve-version-badge]: https://img.shields.io/docker/v/goldsourceservers/valve/latest?label=&style=flat-square [hlds-valve-size-badge]: https://img.shields.io/docker/image-size/goldsourceservers/valve/latest?label=&style=flat-square [hlds-valve-metadata-link]: https://hub.docker.com/r/goldsourceservers/valve/tags +[pipeline-gitlab-hlds-valve-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=hlds-valve&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-hlds-valve-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=hlds-valve diff --git a/docs/image/readme/srcds-cs2.md b/docs/image/readme/srcds-cs2.md index 3b5c40e0..3ae75572 100644 --- a/docs/image/readme/srcds-cs2.md +++ b/docs/image/readme/srcds-cs2.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Counter-Strike 2 | [`sourceservers/cs2`][srcds-cs2-dockerhub-link] | [![srcds-cs2-version-badge][]][srcds-cs2-metadata-link] | [![srcds-cs2-size-badge][]][srcds-cs2-metadata-link] | [![srcds-cs2-layers-badge][]][srcds-cs2-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Counter-Strike 2 | [`sourceservers/cs2`][srcds-cs2-dockerhub-link] | [![srcds-cs2-version-badge][]][srcds-cs2-metadata-link] | [![srcds-cs2-size-badge][]][srcds-cs2-metadata-link] | [![pipeline-gitlab-srcds-cs2-badge][]][pipeline-gitlab-srcds-cs2-link] | [srcds-cs2-dockerhub-link]: https://hub.docker.com/r/sourceservers/cs2 [srcds-cs2-version-badge]: https://img.shields.io/docker/v/sourceservers/cs2/latest?label=&style=flat-square [srcds-cs2-size-badge]: https://img.shields.io/docker/image-size/sourceservers/cs2/latest?label=&style=flat-square [srcds-cs2-metadata-link]: https://hub.docker.com/r/sourceservers/cs2/tags +[pipeline-gitlab-srcds-cs2-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-cs2&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-cs2-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-cs2 diff --git a/docs/image/readme/srcds-csgo.md b/docs/image/readme/srcds-csgo.md index e542ce36..7c0deafc 100644 --- a/docs/image/readme/srcds-csgo.md +++ b/docs/image/readme/srcds-csgo.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Counter-Strike: Global Offensive | [`sourceservers/csgo`][srcds-csgo-dockerhub-link] | [![srcds-csgo-version-badge][]][srcds-csgo-metadata-link] | [![srcds-csgo-size-badge][]][srcds-csgo-metadata-link] | [![srcds-csgo-layers-badge][]][srcds-csgo-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Counter-Strike: Global Offensive | [`sourceservers/csgo`][srcds-csgo-dockerhub-link] | [![srcds-csgo-version-badge][]][srcds-csgo-metadata-link] | [![srcds-csgo-size-badge][]][srcds-csgo-metadata-link] | [![pipeline-gitlab-srcds-csgo-badge][]][pipeline-gitlab-srcds-csgo-link] | [srcds-csgo-dockerhub-link]: https://hub.docker.com/r/sourceservers/csgo [srcds-csgo-version-badge]: https://img.shields.io/docker/v/sourceservers/csgo/latest?label=&style=flat-square [srcds-csgo-size-badge]: https://img.shields.io/docker/image-size/sourceservers/csgo/latest?label=&style=flat-square [srcds-csgo-metadata-link]: https://hub.docker.com/r/sourceservers/csgo/tags +[pipeline-gitlab-srcds-csgo-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-csgo&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-csgo-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-csgo diff --git a/docs/image/readme/srcds-cstrike.md b/docs/image/readme/srcds-cstrike.md index 35f3c311..d161a6aa 100644 --- a/docs/image/readme/srcds-cstrike.md +++ b/docs/image/readme/srcds-cstrike.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Counter-Strike: Source | [`sourceservers/cstrike`][srcds-cstrike-dockerhub-link] | [![srcds-cstrike-version-badge][]][srcds-cstrike-metadata-link] | [![srcds-cstrike-size-badge][]][srcds-cstrike-metadata-link] | [![srcds-cstrike-layers-badge][]][srcds-cstrike-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Counter-Strike: Source | [`sourceservers/cstrike`][srcds-cstrike-dockerhub-link] | [![srcds-cstrike-version-badge][]][srcds-cstrike-metadata-link] | [![srcds-cstrike-size-badge][]][srcds-cstrike-metadata-link] | [![pipeline-gitlab-srcds-cstrike-badge][]][pipeline-gitlab-srcds-cstrike-link] | [srcds-cstrike-dockerhub-link]: https://hub.docker.com/r/sourceservers/cstrike [srcds-cstrike-version-badge]: https://img.shields.io/docker/v/sourceservers/cstrike/latest?label=&style=flat-square [srcds-cstrike-size-badge]: https://img.shields.io/docker/image-size/sourceservers/cstrike/latest?label=&style=flat-square [srcds-cstrike-metadata-link]: https://hub.docker.com/r/sourceservers/cstrike/tags +[pipeline-gitlab-srcds-cstrike-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-cstrike&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-cstrike-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-cstrike diff --git a/docs/image/readme/srcds-dod.md b/docs/image/readme/srcds-dod.md index 066e6763..9e3ef648 100644 --- a/docs/image/readme/srcds-dod.md +++ b/docs/image/readme/srcds-dod.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Day of Defeat: Source | [`sourceservers/dod`][srcds-dod-dockerhub-link] | [![srcds-dod-version-badge][]][srcds-dod-metadata-link] | [![srcds-dod-size-badge][]][srcds-dod-metadata-link] | [![srcds-dod-layers-badge][]][srcds-dod-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Day of Defeat: Source | [`sourceservers/dod`][srcds-dod-dockerhub-link] | [![srcds-dod-version-badge][]][srcds-dod-metadata-link] | [![srcds-dod-size-badge][]][srcds-dod-metadata-link] | [![pipeline-gitlab-srcds-dod-badge][]][pipeline-gitlab-srcds-dod-link] | [srcds-dod-dockerhub-link]: https://hub.docker.com/r/sourceservers/dod [srcds-dod-version-badge]: https://img.shields.io/docker/v/sourceservers/dod/latest?label=&style=flat-square [srcds-dod-size-badge]: https://img.shields.io/docker/image-size/sourceservers/dod/latest?label=&style=flat-square [srcds-dod-metadata-link]: https://hub.docker.com/r/sourceservers/dod/tags +[pipeline-gitlab-srcds-dod-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-dod&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-dod-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-dod diff --git a/docs/image/readme/srcds-hl2mp.md b/docs/image/readme/srcds-hl2mp.md index 6a20e6bb..7e91b36a 100644 --- a/docs/image/readme/srcds-hl2mp.md +++ b/docs/image/readme/srcds-hl2mp.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Half-Life 2: Deathmatch | [`sourceservers/hl2mp`][srcds-hl2mp-dockerhub-link] | [![srcds-hl2mp-version-badge][]][srcds-hl2mp-metadata-link] | [![srcds-hl2mp-size-badge][]][srcds-hl2mp-metadata-link] | [![srcds-hl2mp-layers-badge][]][srcds-hl2mp-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Half-Life 2: Deathmatch | [`sourceservers/hl2mp`][srcds-hl2mp-dockerhub-link] | [![srcds-hl2mp-version-badge][]][srcds-hl2mp-metadata-link] | [![srcds-hl2mp-size-badge][]][srcds-hl2mp-metadata-link] | [![pipeline-gitlab-srcds-hl2mp-badge][]][pipeline-gitlab-srcds-hl2mp-link] | [srcds-hl2mp-dockerhub-link]: https://hub.docker.com/r/sourceservers/hl2mp [srcds-hl2mp-version-badge]: https://img.shields.io/docker/v/sourceservers/hl2mp/latest?label=&style=flat-square [srcds-hl2mp-size-badge]: https://img.shields.io/docker/image-size/sourceservers/hl2mp/latest?label=&style=flat-square [srcds-hl2mp-metadata-link]: https://hub.docker.com/r/sourceservers/hl2mp/tags +[pipeline-gitlab-srcds-hl2mp-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-hl2mp&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-hl2mp-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-hl2mp diff --git a/docs/image/readme/srcds-left4dead.md b/docs/image/readme/srcds-left4dead.md index 34fe294d..84fe374a 100644 --- a/docs/image/readme/srcds-left4dead.md +++ b/docs/image/readme/srcds-left4dead.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Left 4 Dead | [`sourceservers/left4dead`][srcds-left4dead-dockerhub-link] | [![srcds-left4dead-version-badge][]][srcds-left4dead-metadata-link] | [![srcds-left4dead-size-badge][]][srcds-left4dead-metadata-link] | [![srcds-left4dead-layers-badge][]][srcds-left4dead-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Left 4 Dead | [`sourceservers/left4dead`][srcds-left4dead-dockerhub-link] | [![srcds-left4dead-version-badge][]][srcds-left4dead-metadata-link] | [![srcds-left4dead-size-badge][]][srcds-left4dead-metadata-link] | [![pipeline-gitlab-srcds-left4dead-badge][]][pipeline-gitlab-srcds-left4dead-link] | [srcds-left4dead-dockerhub-link]: https://hub.docker.com/r/sourceservers/left4dead [srcds-left4dead-version-badge]: https://img.shields.io/docker/v/sourceservers/left4dead/latest?label=&style=flat-square [srcds-left4dead-size-badge]: https://img.shields.io/docker/image-size/sourceservers/left4dead/latest?label=&style=flat-square [srcds-left4dead-metadata-link]: https://hub.docker.com/r/sourceservers/left4dead/tags +[pipeline-gitlab-srcds-left4dead-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-left4dead&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-left4dead-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-left4dead diff --git a/docs/image/readme/srcds-left4dead2.md b/docs/image/readme/srcds-left4dead2.md index 1d81f61a..6b0310fb 100644 --- a/docs/image/readme/srcds-left4dead2.md +++ b/docs/image/readme/srcds-left4dead2.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Left 4 Dead 2 | [`sourceservers/left4dead2`][srcds-left4dead2-dockerhub-link] | [![srcds-left4dead2-version-badge][]][srcds-left4dead2-metadata-link] | [![srcds-left4dead2-size-badge][]][srcds-left4dead2-metadata-link] | [![srcds-left4dead2-layers-badge][]][srcds-left4dead2-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Left 4 Dead 2 | [`sourceservers/left4dead2`][srcds-left4dead2-dockerhub-link] | [![srcds-left4dead2-version-badge][]][srcds-left4dead2-metadata-link] | [![srcds-left4dead2-size-badge][]][srcds-left4dead2-metadata-link] | [![pipeline-gitlab-srcds-left4dead2-badge][]][pipeline-gitlab-srcds-left4dead2-link] | [srcds-left4dead2-dockerhub-link]: https://hub.docker.com/r/sourceservers/left4dead2 [srcds-left4dead2-version-badge]: https://img.shields.io/docker/v/sourceservers/left4dead2/latest?label=&style=flat-square [srcds-left4dead2-size-badge]: https://img.shields.io/docker/image-size/sourceservers/left4dead2/latest?label=&style=flat-square [srcds-left4dead2-metadata-link]: https://hub.docker.com/r/sourceservers/left4dead2/tags +[pipeline-gitlab-srcds-left4dead2-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-left4dead2&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-left4dead2-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-left4dead2 diff --git a/docs/image/readme/srcds-tf.md b/docs/image/readme/srcds-tf.md index e7bffbf7..f80c8eb5 100644 --- a/docs/image/readme/srcds-tf.md +++ b/docs/image/readme/srcds-tf.md @@ -1,35 +1,17 @@ -| `master` | `build` | `update` | -|:-:|:-:|:-:| -[![pipeline-github-master-badge][]][pipeline-github-master-link] | [![pipeline-travis-build-badge][]][pipeline-travis-build-link] [![pipeline-azurepipelines-build-badge][]][pipeline-azurepipelines-build-link] [![pipeline-circleci-build-badge][]][pipeline-circleci-build-link] [![pipeline-gitlab-build-badge][]][pipeline-gitlab-build-link] | [![pipeline-travis-update-badge][]][pipeline-travis-update-link] [![pipeline-azurepipelines-update-badge][]][pipeline-azurepipelines-update-link] [![pipeline-circleci-update-badge][]][pipeline-circleci-update-link] [![pipeline-gitlab-update-badge][]][pipeline-gitlab-update-link] +| `master` | +|:-:| +[![pipeline-github-master-badge][]][pipeline-github-master-link] | [pipeline-github-master-badge]: https://img.shields.io/github/actions/workflow/status/startersclan/docker-sourceservers/ci-master-pr.yml?branch=master&label=&logo=github&style=flat-square [pipeline-github-master-link]: https://github.com/startersclan/docker-sourceservers/actions?query=branch%3Amaster -[pipeline-travis-build-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/build.svg?label=&logo=travis&style=flat-square -[pipeline-travis-build-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds -[pipeline-travis-update-badge]: https://img.shields.io/travis/com/startersclan/docker-sourceservers/update.svg?label=&logo=travis&style=flat-square -[pipeline-travis-update-link]: https://app.travis-ci.com/startersclan/docker-sourceservers/builds - -[pipeline-azurepipelines-build-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/2/build.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-build-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=2 -[pipeline-azurepipelines-update-badge]: https://img.shields.io/azure-devops/build/startersclan/docker-sourceservers/3/update.svg?label=&logo=azure-pipelines&style=flat-square -[pipeline-azurepipelines-update-link]: https://dev.azure.com/startersclan/docker-sourceservers/_build?definitionId=3 - -[pipeline-circleci-build-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/build.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-build-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=build -[pipeline-circleci-update-badge]: https://img.shields.io/circleci/build/gh/startersclan/docker-sourceservers/update.svg?label=&logo=circleci&style=flat-square -[pipeline-circleci-update-link]: https://app.circleci.com/pipelines/github/startersclan/docker-sourceservers?branch=update - -[pipeline-gitlab-build-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=build&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-build-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=build -[pipeline-gitlab-update-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=update&label=&logo=gitlab&style=flat-square -[pipeline-gitlab-update-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=update - -| Game | Image | Tag `v` | Size | -|:-:|:-:|:-:|:-:| -| Team Fortress 2 | [`sourceservers/tf`][srcds-tf-dockerhub-link] | [![srcds-tf-version-badge][]][srcds-tf-metadata-link] | [![srcds-tf-size-badge][]][srcds-tf-metadata-link] | [![srcds-tf-layers-badge][]][srcds-tf-metadata-link] | +| Game | Image | Tag `v` | Size | Status | +|:-:|:-:|:-:|:-:|:-:| +| Team Fortress 2 | [`sourceservers/tf`][srcds-tf-dockerhub-link] | [![srcds-tf-version-badge][]][srcds-tf-metadata-link] | [![srcds-tf-size-badge][]][srcds-tf-metadata-link] | [![pipeline-gitlab-srcds-tf-badge][]][pipeline-gitlab-srcds-tf-link] | [srcds-tf-dockerhub-link]: https://hub.docker.com/r/sourceservers/tf [srcds-tf-version-badge]: https://img.shields.io/docker/v/sourceservers/tf/latest?label=&style=flat-square [srcds-tf-size-badge]: https://img.shields.io/docker/image-size/sourceservers/tf/latest?label=&style=flat-square [srcds-tf-metadata-link]: https://hub.docker.com/r/sourceservers/tf/tags +[pipeline-gitlab-srcds-tf-badge]: https://img.shields.io/gitlab/pipeline-status/startersclan/docker-sourceservers?branch=srcds-tf&label=&logo=gitlab&style=flat-square +[pipeline-gitlab-srcds-tf-link]: https://gitlab.com/startersclan/docker-sourceservers/-/pipelines?page=1&scope=all&ref=srcds-tf diff --git a/games.json b/games.json new file mode 100644 index 00000000..cf4883ca --- /dev/null +++ b/games.json @@ -0,0 +1,194 @@ +[ + { + "game_version": 1127, + "game_update_count": 1, + "game_platform": "steam", + "game_engine": "hlds", + "game": "cstrike", + "mod": "cstrike", + "appid": 90, + "client_appid": 10, + "docker_repository": "goldsourceservers/cstrike", + "fix_app_manifest": false + }, + { + "game_version": 1003, + "game_update_count": 1, + "game_platform": "steam", + "game_engine": "hlds", + "game": "czero", + "mod": "czero", + "appid": 90, + "client_appid": 80, + "docker_repository": "goldsourceservers/czero", + "fix_app_manifest": false + }, + { + "game_version": 1123, + "game_update_count": 1, + "game_platform": "steam", + "game_engine": "hlds", + "game": "dmc", + "mod": "dmc", + "appid": 90, + "client_appid": 40, + "docker_repository": "goldsourceservers/dmc", + "fix_app_manifest": false + }, + { + "game_version": 1126, + "game_update_count": 1, + "game_platform": "steam", + "game_engine": "hlds", + "game": "dod", + "mod": "dod", + "appid": 90, + "client_appid": 30, + "docker_repository": "goldsourceservers/dod", + "fix_app_manifest": false + }, + { + "game_version": 1122, + "game_update_count": 1, + "game_platform": "steam", + "game_engine": "hlds", + "game": "gearbox", + "mod": "gearbox", + "appid": 90, + "client_appid": 70, + "docker_repository": "goldsourceservers/gearbox", + "fix_app_manifest": false + }, + { + "game_version": 1121, + "game_update_count": 1, + "game_platform": "steam", + "game_engine": "hlds", + "game": "ricochet", + "mod": "ricochet", + "appid": 90, + "client_appid": 60, + "docker_repository": "goldsourceservers/ricochet", + "fix_app_manifest": false + }, + { + "game_version": 1122, + "game_update_count": 1, + "game_platform": "steam", + "game_engine": "hlds", + "game": "tfc", + "mod": "tfc", + "appid": 90, + "client_appid": 20, + "docker_repository": "goldsourceservers/tfc", + "fix_app_manifest": false + }, + { + "game_version": 1122, + "game_update_count": 1, + "game_platform": "steam", + "game_engine": "hlds", + "game": "valve", + "mod": "", + "appid": 90, + "client_appid": 70, + "docker_repository": "goldsourceservers/valve", + "fix_app_manifest": false + }, + { + "game_version": 13881, + "game_update_count": 5, + "game_platform": "steam", + "game_engine": "srcds", + "game": "csgo", + "mod": "", + "appid": 740, + "client_appid": 730, + "docker_repository": "sourceservers/csgo", + "fix_app_manifest": false + }, + { + "game_version": 13980, + "game_update_count": 9, + "game_platform": "steam", + "game_engine": "srcds", + "game": "cs2", + "mod": "", + "appid": 730, + "client_appid": 730, + "docker_repository": "sourceservers/cs2", + "fix_app_manifest": false + }, + { + "game_version": 6630498, + "game_update_count": 2, + "game_platform": "steam", + "game_engine": "srcds", + "game": "cstrike", + "mod": "", + "appid": 232330, + "client_appid": 240, + "docker_repository": "sourceservers/cstrike", + "fix_app_manifest": false + }, + { + "game_version": 6630498, + "game_update_count": 2, + "game_platform": "steam", + "game_engine": "srcds", + "game": "dod", + "mod": "", + "appid": 232290, + "client_appid": 300, + "docker_repository": "sourceservers/dod", + "fix_app_manifest": false + }, + { + "game_version": 6630498, + "game_update_count": 2, + "game_platform": "steam", + "game_engine": "srcds", + "game": "hl2mp", + "mod": "", + "appid": 232370, + "client_appid": 320, + "docker_repository": "sourceservers/hl2mp", + "fix_app_manifest": false + }, + { + "game_version": 1041, + "game_update_count": 3, + "game_platform": "steam", + "game_engine": "srcds", + "game": "left4dead", + "mod": "", + "appid": 222840, + "client_appid": 500, + "docker_repository": "sourceservers/left4dead", + "fix_app_manifest": false + }, + { + "game_version": 2229, + "game_update_count": 9, + "game_platform": "steam", + "game_engine": "srcds", + "game": "left4dead2", + "mod": "", + "appid": 222860, + "client_appid": 550, + "docker_repository": "sourceservers/left4dead2", + "fix_app_manifest": false + }, + { + "game_version": 8568259, + "game_update_count": 8, + "game_platform": "steam", + "game_engine": "srcds", + "game": "tf", + "mod": "", + "appid": 232250, + "client_appid": 440, + "docker_repository": "sourceservers/tf", + "fix_app_manifest": false + } +] diff --git a/notify.sh b/notify.sh index b796fe5d..c3eece3d 100755 --- a/notify.sh +++ b/notify.sh @@ -1,52 +1,44 @@ #!/bin/sh +set -eu -# Process job variables -GAME_VERSION=${GAME_VERSION:-} -APPID=${APPID:-} -CLIENT_APPID=${CLIENT_APPID:-} -GAME=${GAME:-} -MOD=${MOD:-} -FIX_APPMANIFEST=${FIX_APPMANIFEST:-} -GAME_UPDATE_COUNT=${GAME_UPDATE_COUNT:-} -LATEST=${LATEST:-} -CACHE=${CACHE:-} -NO_TEST=${NO_TEST:-} -NO_PUSH=${NO_PUSH:-} -STEAM_LOGIN=${STEAM_LOGIN:-} +usage() { + echo "notify.sh: Send build status to a webhook. Requires git and curl" + echo "Examples: " + echo " ./notify.sh" +} +if [ "${1:-}" = '-h' ] || [ "${1:-}" = '--help' ]; then + usage + exit 0 +fi -# Read build state file +# CI variables +# CI_JOB_ID=${CI_JOB_ID:?err} +CI_PROJECT_NAMESPACE=${CI_PROJECT_NAMESPACE:?err} +CI_PROJECT_NAME=${CI_PROJECT_NAME:-$( git rev-parse --show-toplevel | xargs basename )} +CI_COMMIT_BRANCH=${CI_COMMIT_BRANCH:-$( git rev-parse --abbrev-ref HEAD )} +CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHORT_SHA:-$( git rev-parse HEAD | head -c7 )} + +# Read .build.state file echo "Reading .build.state file" . ./.build.state -# Process build state variables +# Build state BUILD_STATUS=${BUILD_STATUS:?err} BASE_SIZE=${BASE_SIZE:-0} LAYERED_SIZE=${LAYERED_SIZE:-0} -# Send notification -date -echo 'Sending notification' +# Secrets +X_GITLAB_WEBHOOK_SECRET=${X_GITLAB_WEBHOOK_SECRET:?err} +NOTIFICATION_WEBHOOK=${NOTIFICATION_WEBHOOK:?err} + +# Send a webhook notification +date -Iseconds +echo "Sending notification" BODY=$( cat <