26 lines
680 B
YAML
26 lines
680 B
YAML
name: '🐳 Build Builder Image'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'Dockerfile.builder'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: linux/amd64
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to Gitea registry
|
|
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login gitea.tourolle.paris -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
|
|
|
- name: Build image
|
|
run: docker build -f Dockerfile.builder -t gitea.tourolle.paris/dtourolle/kpnpp-builder:latest .
|
|
|
|
- name: Push image
|
|
run: docker push gitea.tourolle.paris/dtourolle/kpnpp-builder:latest
|