homer/.github/workflows/dockerhub.yml

47 lines
1.2 KiB
YAML
Raw Normal View History

2022-06-12 16:15:54 +02:00
# Build & publish docker images
name: Dockerhub
on:
push:
tags: [v*]
jobs:
dockerhub:
runs-on: ubuntu-latest
timeout-minutes: 20
2022-06-12 16:15:54 +02:00
steps:
-
name: Checkout
2024-03-08 10:27:34 +01:00
uses: actions/checkout@v4
2022-06-12 16:15:54 +02:00
-
name: Set up QEMU
2024-03-08 10:27:34 +01:00
uses: docker/setup-qemu-action@v3
2022-06-12 16:15:54 +02:00
-
name: Set up Docker Buildx
id: buildx
2024-03-08 10:27:34 +01:00
uses: docker/setup-buildx-action@v3
2022-06-12 16:15:54 +02:00
-
name: Login to Docker Hub
uses: docker/login-action@v3
2022-06-12 16:15:54 +02:00
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
2023-03-28 18:12:11 +02:00
-
name: Login to GHCR
2024-03-08 10:27:34 +01:00
uses: docker/login-action@v3
2023-03-28 18:12:11 +02:00
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
2022-06-12 16:15:54 +02:00
-
name: Build and push
uses: docker/build-push-action@v6
2022-06-12 16:15:54 +02:00
with:
push: true
2023-03-28 18:12:11 +02:00
tags: |
b4bz/homer:latest
b4bz/homer:${{ github.ref_name }}
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
2024-03-11 09:54:09 +01:00
platforms: linux/amd64,linux/arm/v7,linux/arm/v6,linux/arm64