2024-05-11 14:16:02 +00:00
|
|
|
name: Build and Push Docker Image
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# run every night at midnight
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-push:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
2024-05-30 18:18:33 +00:00
|
|
|
fail-fast: false # don't fail the other jobs if one of the images fails to build
|
2024-05-11 14:16:02 +00:00
|
|
|
matrix:
|
|
|
|
os: [ 'alpine', 'archlinux', 'debian', 'fedora', 'gentoo', 'opensuse' ]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build and push Docker image
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: Dockerfiles/${{ matrix.os }}
|
|
|
|
push: true
|
2024-05-28 07:13:11 +00:00
|
|
|
tags: alexays/waybar:${{ matrix.os }}
|