Skip to content

specific dev-ci

specific dev-ci #1

Workflow file for this run

name: ci-dev
on:
push:
branches:
- dev
jobs:
buildx:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cores:
- dockerfile: Dockerfile.cmangos
image: ziermmar/cmangos
- dockerfile: Dockerfile.vmangos
image: ziermmar/vmangos
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.cores.image }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=sha
- name: Build and push
id: build
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{ matrix.cores.dockerfile }}
target: ${{ vars.BUILD_TARGET_STAGE }}
push: true