feat: β¨ Add custom mod support (#7) #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Docker Images π π¦ | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
concurrency: | |
group: docker_image_publish | |
cancel-in-progress: true | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: "0" | |
- name: Set up Docker Buildx π οΈ | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to DockerHub π³ | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Build Docker Image for Counter-Strike π³ | |
uses: docker/build-push-action@v5 | |
env: | |
GAME: cstrike | |
with: | |
context: . | |
push: true | |
tags: jives/hlds:cstrike | |
build-args: GAME=cstrike | |
- name: Build Docker Image for Half-Life π³ | |
uses: docker/build-push-action@v5 | |
env: | |
GAME: valve | |
with: | |
context: . | |
push: true | |
tags: jives/hlds:valve | |
build-args: GAME=valve | |
- name: Build Docker Image for Counter-Strike Condition Zero π³ | |
uses: docker/build-push-action@v5 | |
env: | |
GAME: czero | |
with: | |
context: . | |
push: true | |
tags: jives/hlds:czero | |
build-args: GAME=czero | |
- name: Build Docker Image for Death Match Classic π³ | |
uses: docker/build-push-action@v5 | |
env: | |
GAME: dmc | |
with: | |
context: . | |
push: true | |
tags: jives/hlds:dmc | |
build-args: GAME=dmc | |
- name: Build Docker Image for Half-Life Opposing Force π³ | |
uses: docker/build-push-action@v5 | |
env: | |
GAME: gearbox | |
with: | |
context: . | |
push: true | |
tags: jives/hlds:gearbox | |
build-args: GAME=gearbox | |
- name: Build Docker Image for Ricochet π³ | |
uses: docker/build-push-action@v5 | |
env: | |
GAME: ricochet | |
with: | |
context: . | |
push: true | |
tags: jives/hlds:ricochet | |
build-args: GAME=richochet | |
- name: Build Docker Image for Day of Defeat π³ | |
uses: docker/build-push-action@v5 | |
env: | |
GAME: dod | |
with: | |
context: . | |
push: true | |
tags: jives/hlds:dod | |
build-args: GAME=dod | |
- name: Build Docker Image for Team Fortress Classic π³ | |
uses: docker/build-push-action@v5 | |
env: | |
GAME: tfc | |
with: | |
context: . | |
push: true | |
tags: jives/hlds:tfc | |
build-args: GAME=tfc | |
- name: Bump Version and Create Tag π·οΈ | |
id: create_tag | |
uses: anothrNick/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
DEFAULT_BUMP: patch | |
- name: Create Release π | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.create_tag.outputs.new_tag }} | |
release_name: ${{ steps.create_tag.outputs.new_tag }} | |
draft: false | |
prerelease: false |