mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Use github token to publish release
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
This commit is contained in:
parent
23588fb43a
commit
15e1148251
5
.github/actions/publish_release/action.yml
vendored
5
.github/actions/publish_release/action.yml
vendored
|
@ -20,6 +20,9 @@ inputs:
|
||||||
quay_io_password:
|
quay_io_password:
|
||||||
type: string
|
type: string
|
||||||
description: Quay.io password
|
description: Quay.io password
|
||||||
|
github_token:
|
||||||
|
type: string
|
||||||
|
description: Github Token
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
|
@ -33,6 +36,8 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: ~/go/bin/promu release .tarballs
|
- run: ~/go/bin/promu release .tarballs
|
||||||
shell: bash
|
shell: bash
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ inputs.github_token }}
|
||||||
- uses: ./.github/actions/publish_release_images
|
- uses: ./.github/actions/publish_release_images
|
||||||
if: inputs.docker_hub_organization != '' && inputs.docker_hub_login != ''
|
if: inputs.docker_hub_organization != '' && inputs.docker_hub_login != ''
|
||||||
with:
|
with:
|
||||||
|
|
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -175,6 +175,7 @@ jobs:
|
||||||
docker_hub_password: ${{ secrets.docker_hub_password }}
|
docker_hub_password: ${{ secrets.docker_hub_password }}
|
||||||
quay_io_login: ${{ secrets.quay_io_login }}
|
quay_io_login: ${{ secrets.quay_io_login }}
|
||||||
quay_io_password: ${{ secrets.quay_io_password }}
|
quay_io_password: ${{ secrets.quay_io_password }}
|
||||||
|
github_token: ${{ secrets.PROMBOT_GITHUB_TOKEN }}
|
||||||
publish_ui_release:
|
publish_ui_release:
|
||||||
name: Publish UI on npm Registry
|
name: Publish UI on npm Registry
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue