mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-01-09 02:00:16 +01:00
28 lines
960 B
YAML
28 lines
960 B
YAML
name: Build Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- feature/docker
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build the Docker image for the Client
|
|
run: docker build . --file Dockerfile --target client --tag ghcr.io/janspeller/bw3-core/client:latest
|
|
- name: Build the Docker image for the Server
|
|
run: docker build . --file Dockerfile --target server --tag ghcr.io/janspeller/bw3-core/server:latest
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GH_PAT }}
|
|
- name: Push the Client Docker image to Github package repository
|
|
run: docker push ghcr.io/janspeller/bw3-core/client:latest
|
|
- name: Push the Server Docker image to Github package repository
|
|
run: docker push ghcr.io/janspeller/bw3-core/server:latest
|