Skip to content

Rebuild Docker CI images #54

Rebuild Docker CI images

Rebuild Docker CI images #54

Workflow file for this run

name: Rebuild Docker CI images
on:
workflow_dispatch:
schedule:
- cron: "23 5 * * *" # daily at 5:23
jobs:
docker:
if: "github.repository == 'qutebrowser/qutebrowser'"
runs-on: ubuntu-20.04
strategy:
matrix:
image:
- archlinux-webkit
- archlinux-webengine
- archlinux-webengine-unstable
- archlinux-webengine-qt6
steps:
- uses: actions/checkout@v3
with:
# FIXME:qt6 remove again once merged
ref: ${{ matrix.image == 'archlinux-webengine-qt6' && 'qt6-v2' || '' }}
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install jinja2
- name: Generate Dockerfile
run: python3 generate.py ${{ matrix.image }}
working-directory: scripts/dev/ci/docker/
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
username: qutebrowser
password: ${{ secrets.DOCKER_TOKEN }}
- uses: docker/build-push-action@v4
with:
file: scripts/dev/ci/docker/Dockerfile
context: .
tags: "qutebrowser/ci:${{ matrix.image }}"
push: ${{ github.ref == 'refs/heads/master' }}
irc:
timeout-minutes: 2
continue-on-error: true
runs-on: ubuntu-20.04
needs: [docker]
if: "always() && github.repository == 'qutebrowser/qutebrowser'"
steps:
- name: Send success IRC notification
uses: Gottox/irc-message-action@v2
if: "needs.docker.result == 'success'"
with:
server: irc.libera.chat
channel: '#qutebrowser-bots'
nickname: qutebrowser-bot
message: "[${{ github.workflow }}] \u00033Success:\u0003 ${{ github.ref }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} (@${{ github.actor }})"
- name: Send non-success IRC notification
uses: Gottox/irc-message-action@v2
if: "needs.docker.result != 'success'"
with:
server: irc.libera.chat
channel: '#qutebrowser-bots'
nickname: qutebrowser-bot
message: "[${{ github.workflow }}] \u00034FAIL:\u0003 ${{ github.ref }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} (@${{ github.actor }})"