Skip to content

Build and Push Gameserver Images #9

Build and Push Gameserver Images

Build and Push Gameserver Images #9

name: Build and Push Gameserver Images
on:
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: 'Set up QEMU'
uses: docker/setup-qemu-action@v2
- name: 'Set up Docker Buildx'
uses: docker/setup-buildx-action@v2
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: 'Build and push AzerothCore gameserver image'
run: |
docker buildx build --push --platform linux/amd64,linux/arm64 -t ghcr.io/${{github.actor}}/gameserver-ac:${{github.ref_name}} -f game-server/azerothcore/Dockerfile .