Skip to content

Commit

Permalink
Set Exif state to support pull request updates (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
namoscato authored Jun 29, 2020
1 parent 43c2236 commit 5aaea4e
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 17,988 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ COPY src ./src
RUN npm run build

FROM node:lts
RUN apt-get update \
&& apt-get -y install exiftool \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/app
COPY package*.json ./
RUN npm ci --only=production
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

* filters PNG and JPEG files in a commit or pull request
* optionally scales images proportionally
* sets Exif metadata to prevent duplicate compressions
* pushes commit with compression metrics

## Usage
Expand All @@ -16,7 +17,6 @@
name: image
on:
pull_request:
types: [opened]
jobs:
compress:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ inputs:
description: 'Maximum target image height'
required: false
runs:
using: 'node12'
main: 'dist/index.js'
using: 'docker'
image: 'Dockerfile'
branding:
icon: 'image'
color: 'green'
3,550 changes: 0 additions & 3,550 deletions dist/cacert.pem

This file was deleted.

Loading

0 comments on commit 5aaea4e

Please sign in to comment.