31 lines
679 B
YAML
Raw Normal View History

2023-02-12 22:45:57 +01:00
name: docker build
2023-02-09 22:07:09 +01:00
on:
push:
branches:
- master
2023-02-10 21:07:39 +01:00
paths:
2023-02-12 22:45:57 +01:00
- '.github/workflows/server.yml'
2023-02-10 21:07:39 +01:00
- 'Pal.Common/**'
- 'Pal.Server/**'
2023-02-12 22:45:57 +01:00
- 'Dockerfile'
2023-02-09 22:07:09 +01:00
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
2023-02-12 22:24:22 +01:00
tags: ghcr.io/${{ github.repository_owner }}/palace-pal:latest