forked from indilib/indi
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 845 Bytes
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Docker
on:
workflow_dispatch:
push:
branches:
- 'master'
paths:
- '.github/docker/*'
- '.github/workflows/docker.yml'
schedule:
- cron: '0 7 */7 * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container: ["debian", "debian-buster", "debian-i386", "ubuntu", "fedora"]
steps:
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
file: ./.github/docker/Dockerfile.${{ matrix.container }}
push: true
tags: ghcr.io/${{ github.repository_owner }}/${{ matrix.container }}