46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: build containers
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 1 * *'
|
|
push:
|
|
branches:
|
|
- release
|
|
paths:
|
|
- operating-systems/**
|
|
jobs:
|
|
push:
|
|
name: Build Container Image container:${{ matrix.operating-systems }}
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
operating-systems:
|
|
- debian
|
|
env:
|
|
IMAGE_NAME: container
|
|
REGISTRY: git.anomalous.dev
|
|
REPO_OWNER: 57_wolve
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
buildkitd-flags: --debug
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ REGISTRY }}
|
|
username: ${{ gitea.actor }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
- uses: docker/build-push-action@v3
|
|
with:
|
|
context: ./operating-systems/${{ matrix.operating-systems }}
|
|
file: ./operating-systems/${{ matrix.operating-systems }}/Dockerfile
|
|
platforms: linux/amd64
|
|
push: true
|
|
tags: |
|
|
${{ REGISTRY }}/${{ REPO_OWNER }}/${{ IMAGE_NAME }}:${{ matrix.operating-systems }} |