Build ARMA III for Windows #71
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: 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@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and push | |
uses: mr-smithers-excellent/docker-build-push@v5 | |
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@v3 | |
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 | |