From 7e41130b5c3d7a70bba5b30bd2466131722ed09b Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Fri, 24 Nov 2023 21:59:03 +0300 Subject: [PATCH] test builder --- .github/workflows/main.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 76a94739..b8801732 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,14 +4,14 @@ on: workflow_dispatch: inputs: logLevel: - description: 'Log level' + description: "Log level" required: true - default: 'warning' + default: "warning" type: choice options: - - info - - warning - - debug + - info + - warning + - debug push: branches: - "*" @@ -46,10 +46,11 @@ jobs: with: images: ghcr.io/${{ github.repository }} tags: | - type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} + type=raw,value=latest,enable={{is_default_branch}} type=ref,event=branch type=ref,event=tag - type=raw,value={{branch}}-{{date 'YYYYMMDD'}}-{{sha}},enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} + type=ref,event=pr + type=raw,event=push,value={{branch}}-{{date 'YYYYMMDD'}}-{{sha}} flavor: | latest=false - name: Login to GitHub Container Registry