32 lines
703 B
YAML
32 lines
703 B
YAML
name: docker build
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '.github/workflows/server.yml'
|
|
- 'Pal.Common/**'
|
|
- 'Pal.Server/**'
|
|
- 'Dockerfile'
|
|
workflow_dispatch: {}
|
|
permissions:
|
|
packages: write
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Login to GitHub Package Registry
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
push: true
|
|
tags: ghcr.io/${{ github.repository_owner }}/palace-pal:latest
|