mirror of
https://github.com/LIV2/container-amiga-gcc.git
synced 2025-12-05 22:22:46 +00:00
Add workflow to document this on Docker Hub
Also update the build workflow to only run for tagged pushes to main or workflow dispatch
This commit is contained in:
parent
698a69d45f
commit
6e18506ed9
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -8,6 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: github.event.base_ref == 'refs/heads/main' || github.event.ref == 'refs/heads/main'
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@ -89,7 +90,7 @@ jobs:
|
||||
images: |
|
||||
${{ vars.DOCKERHUB_REPO }}
|
||||
tags: |
|
||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
|
||||
type=raw,value=latest
|
||||
type=sha
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
|
||||
24
.github/workflows/document.yml
vendored
Normal file
24
.github/workflows/document.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
name: Update Docker Hub Description
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- README.md
|
||||
- .github/workflows/document.yml
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
description:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Docker Hub Description
|
||||
uses: peter-evans/dockerhub-description@v4
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
repository: ${{ vars.DOCKERHUB_REPO }}
|
||||
readme-filepath: ./README.md
|
||||
short-description: ${{ github.event.repository.description }}
|
||||
enable-url-completion: true
|
||||
Loading…
x
Reference in New Issue
Block a user