mirror of
https://github.com/sbondCo/Watcharr.git
synced 2026-08-07 07:14:44 +00:00
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
name: Release Watcharr Image
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
env:
|
|
image: sbondco/watcharr
|
|
|
|
jobs:
|
|
release-images:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v7.0.0
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v4.2.0
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v4.2.0
|
|
|
|
- name: Log in to GitHub Container Registry
|
|
uses: docker/login-action@v4.4.0
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v4.4.0
|
|
with:
|
|
username: sbondco
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Extract metadata (tags, labels) for Docker
|
|
id: meta
|
|
uses: docker/metadata-action@v6.2.0
|
|
with:
|
|
images: |
|
|
${{ env.image }}
|
|
ghcr.io/${{ env.image }}
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v7.3.0
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
tags: |
|
|
${{ steps.meta.outputs.tags }}
|
|
ghcr.io/${{ steps.meta.outputs.tags }}
|
|
labels: |
|
|
${{ steps.meta.outputs.labels }}
|
|
ghcr.io/${{ steps.meta.outputs.labels }}
|