-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Bentley Hensel <[email protected]>
- Loading branch information
1 parent
fb62d92
commit 88e1c7f
Showing
1 changed file
with
16 additions
and
5 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 |
---|---|---|
|
@@ -3,10 +3,8 @@ name: Build and publish 🐳 images | |
on: | ||
push: | ||
|
||
|
||
workflow_dispatch: | ||
|
||
|
||
env: | ||
GHCR_REGISTRY: ghcr.io | ||
DOCKERHUB_REGISTRY: docker.io | ||
|
@@ -53,13 +51,26 @@ jobs: | |
type=raw,prefix={{branch}}-,value=latest,priority=200,enable=${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }} | ||
type=raw,value={{branch}},priority=500 | ||
# Caching | https://docs.docker.com/build/ci/github-actions/cache/ | ||
- name: 🏗️📤 Build and push 🐳 image | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
# cache-from: type=gha | ||
# cache-to: type=gha,mode=max | ||
|
||
update: | ||
name: Update Docker Description | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build-and-push-image | ||
steps: | ||
- name: Docker Hub Description | ||
uses: peter-evans/dockerhub-description@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
repository: ${{ env.IMAGE_NAME }} | ||
short-description: ${{ github.event.repository.description }} | ||
enable-url-completion: true | ||
readme-filepath: ./README.md |