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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: github.event.base_ref == 'refs/heads/main' || github.event.ref == 'refs/heads/main'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -89,7 +90,7 @@ jobs:
|
|||||||
images: |
|
images: |
|
||||||
${{ vars.DOCKERHUB_REPO }}
|
${{ vars.DOCKERHUB_REPO }}
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
|
type=raw,value=latest
|
||||||
type=sha
|
type=sha
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
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