images/.gitea/workflows/image_builds.yaml

35 lines
759 B
YAML
Raw Normal View History

2023-11-16 17:49:44 +00:00
---
2023-11-17 08:03:46 +00:00
name: Image builds
2023-11-16 17:49:44 +00:00
on:
schedule:
- cron: '21 2 * * *'
push:
branches:
- main
jobs:
2023-11-17 08:03:46 +00:00
build_images:
strategy:
matrix:
image:
- renovate
2023-11-16 17:49:44 +00:00
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: code.icb4dc0.de
username: prskr
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
2023-11-17 08:03:46 +00:00
context: "./${{ matrix.image }}"
2023-11-16 17:49:44 +00:00
push: true
2023-11-17 08:03:46 +00:00
tags: code.icb4dc0.de/infrastructure/images/${{ matrix.image }}:latest