File: docker.yml

package info (click to toggle)
waybar 0.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,464 kB
  • sloc: cpp: 25,331; xml: 742; python: 146; ansic: 77; makefile: 29
file content (34 lines) | stat: -rw-r--r-- 947 bytes parent folder | download
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
name: Build and Push Docker Image

on:
  workflow_dispatch:
  schedule:
    # run monthly
    - cron: '0 0 1 * *'

jobs:
  build-and-push:
    runs-on: ubuntu-latest
    if: github.event_name != 'schedule' || github.repository == 'Alexays/Waybar'
    strategy:
      fail-fast: false # don't fail the other jobs if one of the images fails to build
      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
          tags: alexays/waybar:${{ matrix.os }}