Skip to content

Back to Exiftools + logging 3 #113

Back to Exiftools + logging 3

Back to Exiftools + logging 3 #113

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
paths-ignore:
- 'LICENSE'
- 'README.md'
- 'TODO.md'
pull_request:
branches:
- main
paths-ignore:
- 'LICENSE'
- 'README.md'
- 'TODO.md'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-24.04
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v4
# Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# Cache Docker layers to speed up builds
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
# Log in to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Build and push Docker image
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: true
tags: tiritibambix/imaguick:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
platforms: linux/amd64 #,linux/arm64
# Logout from Docker Hub
- name: Logout from Docker Hub
run: docker logout