Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
Signed-off-by: Bentley Hensel <bentleyhensel@gmail.com>
  • Loading branch information
TheBoatyMcBoatFace committed Sep 20, 2023
1 parent fb62d92 commit 88e1c7f
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/containerize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ name: Build and publish 🐳 images
on:
push:


workflow_dispatch:


env:
GHCR_REGISTRY: ghcr.io
DOCKERHUB_REGISTRY: docker.io
Expand Down Expand Up @@ -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/build-push-action@v2.7.0
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

0 comments on commit 88e1c7f

Please sign in to comment.