-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from ryboe/master
- Loading branch information
Showing
4 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: PR | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
should_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Log in to GHCR | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ github.token }} | ||
- name: Build image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
cache-from: type=gha | ||
# linux/amd64 supports all x86 CPUs | ||
# linux/amd64/v2 supports x86 CPUs from 2010+ | ||
# linux/amd64/v3 supports x86 CPUs from 2015+ | ||
# https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels | ||
platforms: linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/arm64 | ||
pull: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build_and_upload_image: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Log in to GHCR | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ github.token }} | ||
- name: Build and Push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
# linux/amd64 supports all x86 CPUs | ||
# linux/amd64/v2 supports x86 CPUs from 2010+ | ||
# linux/amd64/v3 supports x86 CPUs from 2015+ | ||
# https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels | ||
platforms: linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/arm64 | ||
pull: true | ||
push: true | ||
tags: ghcr.io/${{ github.repository }}:latest | ||
cache-from: type=gha | ||
# mode=max means "cache everything possible". This ensures maximum | ||
# use of the cache, but will use up GitHub's 10 GB cache size limit | ||
# faster. | ||
cache-to: type=gha,mode=max |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters