Skip to content

Experiment with Fedora package scheduling #262

Experiment with Fedora package scheduling

Experiment with Fedora package scheduling #262

Workflow file for this run

name: Docker
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build:
- name: rebuilderd
file: Dockerfile
- name: worker-alpine
file: worker/Dockerfile.alpine
- name: worker-archlinux
file: worker/Dockerfile.archlinux
- name: worker-debian
file: worker/Dockerfile.debian
- name: worker-fedora
file: worker/Dockerfile.fedora
- name: worker-tails
file: worker/Dockerfile.tails
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
-
name: Build Docker image
uses: docker/build-push-action@v2
with:
load: true
tags: ${{ matrix.build.name }}
file: ${{ matrix.build.file }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
-
name: Test Docker image (rebuilderd)
run: docker run --rm rebuilderd rebuilderd --help
if: matrix.build.name == 'rebuilderd'
-
name: Test Docker image (rebuildctl)
run: docker run --rm rebuilderd rebuildctl --help
if: matrix.build.name == 'rebuilderd'
-
# Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache