Skip to content

Build ARMA III for Windows #125

Build ARMA III for Windows

Build ARMA III for Windows #125

Workflow file for this run

name: Build ARMA III for Windows
on:
schedule:
- cron: 0 0 * * 0
push:
branches:
- main
paths:
- "arma3-win/**"
env:
GAME: arma3-win
VERSION: 1
DOCKER_HUB_DESCRIPTION: "ARMA III game server and headless client running on Windows Server"
jobs:
build-and-deploy:
name: Build and push Docker image
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: ipshosting/game-${{ env.GAME }}
registry: docker.io
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: v${{ env.VERSION }}, latest
dockerfile: ./${{ env.GAME }}/Dockerfile
directory: ./${{ env.GAME }}
- name: Update DockerHub description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
repository: ipshosting/game-${{ env.GAME }}
short-description: ${{ env.DOCKER_HUB_DESCRIPTION }}
readme-filepath: ./${{ env.GAME }}/README.md