Use `github.repository` property for image name

As the `github.event.repository.name` property is not always available,
for example when the action gets triggered by a cron job.

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals 2021-06-09 11:49:20 +02:00
parent 39e9602ada
commit 8acb8cd688
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ on:
workflow_dispatch:
env:
CONTROLLER: ${{ github.event.repository.name }}
REPOSITORY: ${{ github.repository }}
jobs:
build:
@ -30,4 +30,4 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64
tags: |
fluxcd/${{ env.CONTROLLER }}:nightly
${{ env.REPOSITORY }}:nightly