Browse Source

ci: fix docker username and password

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
pull/2942/head
Mark Sagi-Kazar 3 years ago
parent
commit
b235197d70
No known key found for this signature in database
GPG Key ID: 31AB0439F4C5C90E
  1. 5
      .github/workflows/artifacts.yaml
  2. 3
      .github/workflows/ci.yaml
  3. 3
      .github/workflows/release.yaml

5
.github/workflows/artifacts.yaml

@ -8,6 +8,11 @@ on:
default: false
required: false
type: boolean
secrets:
DOCKER_USERNAME:
required: true
DOCKER_PASSWORD:
required: true
outputs:
container-image-name:
description: Container image name

3
.github/workflows/ci.yaml

@ -151,6 +151,9 @@ jobs:
uses: ./.github/workflows/artifacts.yaml
with:
publish: ${{ github.event_name == 'push' }}
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
permissions:
contents: read
packages: write

3
.github/workflows/release.yaml

@ -13,6 +13,9 @@ jobs:
uses: ./.github/workflows/artifacts.yaml
with:
publish: true
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
permissions:
contents: read
packages: write

Loading…
Cancel
Save