PalacePal/.github/workflows/server.yml

32 lines
728 B
YAML
Raw Normal View History

2023-02-12 21:45:57 +00:00
name: docker build
2023-02-09 21:07:09 +00:00
on:
push:
branches:
- master
2023-02-10 20:07:39 +00:00
paths:
2023-02-12 21:45:57 +00:00
- '.github/workflows/server.yml'
2023-02-10 20:07:39 +00:00
- 'Pal.Common/**'
- 'Pal.Server/**'
2023-02-12 21:45:57 +00:00
- 'Dockerfile'
2023-03-26 13:47:18 +00:00
workflow_dispatch: { }
2023-02-09 21:07:09 +00:00
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
2023-03-26 13:47:18 +00:00
- uses: actions/checkout@v3
2023-02-09 21:07:09 +00:00
2023-03-26 13:47:18 +00:00
- name: Login to GitHub Package Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
2023-02-09 21:07:09 +00:00
2023-03-26 13:47:18 +00:00
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/${{ github.repository_owner }}/palace-pal:latest