diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4da756a..4cec242 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -172,7 +172,7 @@ jobs: --build-arg FROM_FLAVOR='${{ matrix.from-flavor }}' --build-arg DISTRO='${{ matrix.distro }}' --build-arg CODENAME='${{ matrix.codename }}' - ${{ github.ref == 'refs/heads/main' && '--push' || format('--output type=docker,dest={0}', env.PATH_TO_IMAGE) }} + ${{ fromJson(env.IS_MAIN) && '--push' || format('--output type=docker,dest={0}', env.PATH_TO_IMAGE) }} --label org.opencontainers.image.authors='${{ env.REPOSITORY_LINK }}, ${{ github.actor }}' --label org.opencontainers.image.description='${{ github.event.repository.description }}' --label org.opencontainers.image.documentation='${{ env.REPOSITORY_LINK }}' @@ -183,6 +183,7 @@ jobs: --label org.opencontainers.image.vendor='${{ github.repository_owner }}' . env: + IS_MAIN: ${{ github.ref == 'refs/heads/main' }} REGISTRY_IMAGE: ${{ format('{0}/{1}', env.REGISTRY, env.IMAGE_REPOSITORY) }} REPOSITORY_LINK: https://github.com/${{ github.repository }}