mirror of
https://github.com/colanode/colanode.git
synced 2025-12-16 11:47:47 +01:00
31 lines
770 B
YAML
31 lines
770 B
YAML
name: Hosting - Build and push custom Postgresql docker image
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'hosting/postgresql/**'
|
|
- '.github/workflows/postgres-docker-build-and-push.yml'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Login to GHCR
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build & push
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./hosting/postgresql
|
|
push: true
|
|
tags: ghcr.io/${{ github.repository_owner }}/postgresql:17
|