immich-exporter/.github/workflows/docker.yml

50 lines
1.4 KiB
YAML
Raw Normal View History

name: Publish Release
on:
workflow_dispatch:
inputs:
tags:
description: 'version'
required: true
type: string
jobs:
build_docker_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: 'main'
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: martabal
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./
platforms: linux/arm/v7,linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: |
martabal/immich-exporter:${{ inputs.tags }}
martabal/immich-exporter:latest
ghcr.io/${{ github.repository_owner }}/immich-exporter:${{ inputs.tags }}
ghcr.io/${{ github.repository_owner }}/immich-exporter:latest