mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-04-30 23:00:30 +00:00
e400e463a4
Build and push containers / metadata (push) Has been cancelled
Build and push containers / build-push-containers (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Has been cancelled
ChangeDetection.io Container Build Test / Build linux/amd64 (alpine) (push) Has been cancelled
ChangeDetection.io Container Build Test / Build linux/arm64 (alpine) (push) Has been cancelled
ChangeDetection.io Container Build Test / Build linux/amd64 (main) (push) Has been cancelled
ChangeDetection.io Container Build Test / Build linux/arm/v7 (main) (push) Has been cancelled
ChangeDetection.io Container Build Test / Build linux/arm/v8 (main) (push) Has been cancelled
ChangeDetection.io Container Build Test / Build linux/arm64 (main) (push) Has been cancelled
ChangeDetection.io App Test / lint-code (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Test the built package works basically. (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-10 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-11 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-12 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-13 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-14 (push) Has been cancelled
87 lines
2.7 KiB
YAML
87 lines
2.7 KiB
YAML
name: ChangeDetection.io Container Build Test
|
|
|
|
# Triggers the workflow on push or pull request events
|
|
|
|
# This line doesnt work, even tho it is the documented one
|
|
#on: [push, pull_request]
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- requirements.txt
|
|
- Dockerfile
|
|
- .github/workflows/*
|
|
- .github/test/Dockerfile*
|
|
|
|
pull_request:
|
|
paths:
|
|
- requirements.txt
|
|
- Dockerfile
|
|
- .github/workflows/*
|
|
- .github/test/Dockerfile*
|
|
|
|
# Changes to requirements.txt packages and Dockerfile may or may not always be compatible with arm etc, so worth testing
|
|
# @todo: some kind of path filter for requirements.txt and Dockerfile
|
|
jobs:
|
|
builder:
|
|
name: Build ${{ matrix.platform }} (${{ matrix.dockerfile == './Dockerfile' && 'main' || 'alpine' }})
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
# Main Dockerfile platforms
|
|
- platform: linux/amd64
|
|
dockerfile: ./Dockerfile
|
|
- platform: linux/arm64
|
|
dockerfile: ./Dockerfile
|
|
- platform: linux/arm/v7
|
|
dockerfile: ./Dockerfile
|
|
- platform: linux/arm/v8
|
|
dockerfile: ./Dockerfile
|
|
# Alpine Dockerfile platforms (musl via alpine check)
|
|
- platform: linux/amd64
|
|
dockerfile: ./.github/test/Dockerfile-alpine
|
|
- platform: linux/arm64
|
|
dockerfile: ./.github/test/Dockerfile-alpine
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Set up Python 3.11
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: 3.11
|
|
|
|
- name: Cache pip packages
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-
|
|
|
|
# Just test that the build works, some libraries won't compile on ARM/rPi etc
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v4
|
|
with:
|
|
image: tonistiigi/binfmt:latest
|
|
platforms: all
|
|
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v4
|
|
with:
|
|
install: true
|
|
version: latest
|
|
driver-opts: image=moby/buildkit:master
|
|
|
|
- name: Test that the docker containers can build (${{ matrix.platform }} - ${{ matrix.dockerfile }})
|
|
id: docker_build
|
|
uses: docker/build-push-action@v7
|
|
# https://github.com/docker/build-push-action#customizing
|
|
with:
|
|
context: ./
|
|
file: ${{ matrix.dockerfile }}
|
|
platforms: ${{ matrix.platform }}
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
|