immich-exporter/.github/workflows/push_docker.yml
martin 81b4b9be55
refactor: remove main.go
Signed-off-by: martin <martin.labat92@gmail.com>
2023-02-17 20:22:56 +01:00

47 lines
1 KiB
YAML

name: Publish Release
on:
workflow_dispatch:
inputs:
tags:
description: 'version'
required: true
type: string
jobs:
build_push_monolith:
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.1.0
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2.2.1
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: martabal
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push immich
uses: docker/build-push-action@v3.2.0
with:
context: ./
file: ./Dockerfile
platforms: linux/arm/v7,linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: |
martabal/immich-exporter:${{ inputs.tags }}
martabal/immich-exporter:latest