Browse Source

Use github token to publish release

Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
pull/11374/head
Julien Pivotto 2 years ago
parent
commit
15e1148251
  1. 5
      .github/actions/publish_release/action.yml
  2. 1
      .github/workflows/ci.yml

5
.github/actions/publish_release/action.yml

@ -20,6 +20,9 @@ inputs:
quay_io_password:
type: string
description: Quay.io password
github_token:
type: string
description: Github Token
runs:
using: composite
steps:
@ -33,6 +36,8 @@ runs:
shell: bash
- run: ~/go/bin/promu release .tarballs
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
- uses: ./.github/actions/publish_release_images
if: inputs.docker_hub_organization != '' && inputs.docker_hub_login != ''
with:

1
.github/workflows/ci.yml

@ -175,6 +175,7 @@ jobs:
docker_hub_password: ${{ secrets.docker_hub_password }}
quay_io_login: ${{ secrets.quay_io_login }}
quay_io_password: ${{ secrets.quay_io_password }}
github_token: ${{ secrets.PROMBOT_GITHUB_TOKEN }}
publish_ui_release:
name: Publish UI on npm Registry
runs-on: ubuntu-latest

Loading…
Cancel
Save