mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-18 03:24:05 -08:00
0a4c6d6c48
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu> Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
name: Publish image
|
|
inputs:
|
|
docker_hub_organization:
|
|
type: string
|
|
description: DockerHub organization
|
|
default: prom
|
|
docker_hub_login:
|
|
type: string
|
|
description: DockerHub username
|
|
docker_hub_password:
|
|
type: string
|
|
description: DockerHub password
|
|
quay_io_organization:
|
|
type: string
|
|
description: Quay.io organization
|
|
default: prometheus
|
|
quay_io_login:
|
|
type: string
|
|
description: Quay.io username
|
|
quay_io_password:
|
|
type: string
|
|
description: Quay.io password
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: ./.github/actions/setup_environment
|
|
with:
|
|
enable_docker_multibuild: true
|
|
- name: Download all workflow run artifacts
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: artifact
|
|
- run: promu crossbuild tarballs
|
|
shell: bash
|
|
- run: promu checksum .tarballs
|
|
shell: bash
|
|
- run: promu release .tarballs
|
|
shell: bash
|
|
- uses: ./.github/actions/publish_release_images
|
|
if: inputs.docker_hub_organization != '' && inputs.docker_hub_login != ''
|
|
with:
|
|
registry: docker.io
|
|
organization: ${{ inputs.docker_hub_organization }}
|
|
login: ${{ inputs.docker_hub_login }}
|
|
password: ${{ inputs.docker_hub_password }}
|
|
- uses: ./.github/actions/publish_release_images
|
|
if: inputs.quay_io_organization != '' && inputs.quay_io_login != ''
|
|
with:
|
|
registry: quay.io
|
|
organization: ${{ inputs.quay_io_organization }}
|
|
login: ${{ inputs.quay_io_login }}
|
|
password: ${{ inputs.quay_io_password }}
|