mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-20 20:21:18 -04:00
pass mdx images through next/image for full optimization benefits
This commit is contained in:
@@ -11,9 +11,10 @@ tags:
|
||||
image: "/static/images/notes/github-actions/actions-flow.png"
|
||||
---
|
||||
|
||||
import Image from "./components/embeds/Image";
|
||||
import Gist from "./components/embeds/Gist";
|
||||
|
||||
<img
|
||||
<Image
|
||||
className="center"
|
||||
src="/static/images/notes/github-actions/actions-flow.png"
|
||||
width="780"
|
||||
@@ -26,7 +27,7 @@ Since being accepted into the beta for [GitHub Actions](https://github.com/featu
|
||||
My favorite so far is my [Lighthouse Audit action](https://github.com/jakejarvis/lighthouse-action), which spins up a headless Google Chrome instance in an Ubuntu container and runs [Google's Lighthouse tool](https://developers.google.com/web/tools/lighthouse), which scores webpages on performance, accessibility, SEO, etc. and provides actual suggestions to improve them. It's a perfect example of the power of combining containers with Git workflows.
|
||||
|
||||
<figure>
|
||||
<img
|
||||
<Image
|
||||
src="/static/images/notes/github-actions/lighthouse-output.png"
|
||||
width="750"
|
||||
height="297"
|
||||
@@ -67,7 +68,7 @@ Using an action is also surprisingly simple, and more intuitive than [Travis CI]
|
||||
|
||||
For a more complex example, when I forked [Hugo](https://github.com/gohugoio/hugo) (the static site generator used to build this website) to make some small personalized changes, I also translated [their `.travis.yml` file](https://github.com/gohugoio/hugo/blob/master/.travis.yml) into a [`workflow.yml` file](https://github.com/jakejarvis/hugo-custom/blob/master/.github/workflows/workflow.yml) for practice, which simultaneously runs comprehensive unit tests on **three operating systems** (Ubuntu 18.04, Windows 10, and macOS 10.14) with the latest two Go versions _each!_ If the tests are all successful, it builds a Docker image and pushes it to both [Docker Hub](https://hub.docker.com/r/jakejarvis/hugo-custom) and the [GitHub Package Registry](https://github.com/jakejarvis/hugo-custom/packages) (also [in beta](https://github.com/features/package-registry)).
|
||||
|
||||
<img
|
||||
<Image
|
||||
src="/static/images/notes/github-actions/hugo-logs.png"
|
||||
width="865"
|
||||
height="418"
|
||||
|
Reference in New Issue
Block a user