-
-
Notifications
You must be signed in to change notification settings - Fork 127
30 lines (28 loc) · 1.01 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Docs 📚
on:
push: { branches: [main] }
jobs:
updateDescriptions:
name: "📚 Update ${{ matrix.imageType }} description on dockerhub"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
imageType:
- base
- hub
- editor
steps:
- name: Checkout
uses: actions/checkout@v4
# Caveat - Currently we use the ubuntu readme as we do not have a catch-all readme (yet?)
- run: |
echo "SHORT_DESCRIPTION=$(cat ./images/ubuntu/${{ matrix.imageType }}/100-characters-dockerhub-description.txt)" >> $GITHUB_ENV
- name: Update DockerHub description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_LEGACY_PASSWORD }}
repository: unityci/${{ matrix.imageType }}
short-description: ${{ env.SHORT_DESCRIPTION }}
readme-filepath: ./images/ubuntu/${{ matrix.imageType }}/README.md