mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-14 17:44:06 -08:00
3bff79451d
Fix yaml indentation. 🤦
Signed-off-by: SuperQ <superq@gmail.com>
54 lines
1.8 KiB
YAML
54 lines
1.8 KiB
YAML
---
|
|
name: Push README to Docker Hub
|
|
on:
|
|
push:
|
|
paths:
|
|
- "README.md"
|
|
- ".github/workflows/container_description.yml"
|
|
branches: [ main, master ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
PushDockerHubReadme:
|
|
runs-on: ubuntu-latest
|
|
name: Push README to Docker Hub
|
|
steps:
|
|
- name: git checkout
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
- name: Set docker hub repo name.
|
|
run: echo "DOCKER_REPO_NAME=$(make common-docker-repo-name)" >> $GITHUB_ENV
|
|
- name: push README to Dockerhub
|
|
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
|
|
env:
|
|
DOCKER_USER: ${{ secrets.DOCKER_HUB_LOGIN }}
|
|
DOCKER_PASS: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
|
with:
|
|
destination_container_repo: ${{ env.DOCKER_REPO_NAME }}
|
|
provider: dockerhub
|
|
short_description: ${{ env.DOCKER_REPO_NAME }}
|
|
readme_file: 'README.md'
|
|
|
|
PushQuayIoReadme:
|
|
runs-on: ubuntu-latest
|
|
name: Push README to Docker Hub
|
|
steps:
|
|
- name: git checkout
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
- name: Set quay.io org name.
|
|
run: echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr -d '-')" >> $GITHUB_ENV
|
|
- name: Set quay.io repo name.
|
|
run: echo "DOCKER_REPO_NAME=$(make common-docker-repo-name)" >> $GITHUB_ENV
|
|
- name: push README to Dockerhub
|
|
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
|
|
env:
|
|
DOCKER_APIKEY: ${{ secrets.QUAY_IO_API_TOKEN }}
|
|
with:
|
|
destination_container_repo: ${{ env.DOCKER_REPO_NAME }}
|
|
provider: quay
|
|
readme_file: 'README.md'
|
|
|
|
|
|
|