27 lines
843 B
YAML
27 lines
843 B
YAML
on:
|
|
push:
|
|
|
|
jobs:
|
|
build-base:
|
|
runs-on: self-hosted
|
|
matrix:
|
|
- PG_MAJOR_VERSION:
|
|
- 17
|
|
- DEB_RELEASE:
|
|
- bookworm
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
- name: buildx-base
|
|
uses: https://github.com/docker/setup-buildx-action@v3
|
|
- name: setup variables
|
|
run: echo "FMT_DATE=2025-05-11" >> $GITHUB_ENV
|
|
- name: Build and push
|
|
uses: https://github.com/docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
tags:
|
|
- gitea.simcop2387.info/simcop2387/pg-container-base:{{ env.PG_MAJOR_VERSION }}-{{ env.DEB_RELEASE }}
|
|
- gitea.simcop2387.info/simcop2387/pg-container-base:{{ env.PG_MAJOR_VERSION }}-{{ env.DEB_RELEASE }}-{{ env.FMT_DATE }}
|
|
context: base/
|
|
dockerfile: base/Dockerfile
|