images/.forgejo/workflows/image_builds.yaml

36 lines
760 B
YAML
Raw Permalink 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:
2024-03-02 11:20:03 +00:00
- cron: "21 2 * * *"
2023-11-16 17:49:44 +00:00
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
2024-03-02 11:20:03 +00:00
uses: actions/checkout@v4
2023-11-16 17:49:44 +00:00
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@v6
2023-11-16 17:49:44 +00:00
with:
2023-11-17 08:03:46 +00:00
context: "./${{ matrix.image }}"
2023-11-16 17:49:44 +00:00
push: true
2024-03-02 11:20:03 +00:00
tags: code.icb4dc0.de/infrastructure/images/${{ matrix.image }}:latest