From 77fb636edfb2413904f28cc6e49198b6fc0d272f Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Mon, 11 Apr 2022 17:32:14 -0300 Subject: [PATCH] Fix not pushing image as latest on schedule With a workaround for https://github.com/docker/metadata-action/issues/184. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c35d9f..759300c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: type=schedule,pattern={{date 'YYYYMMDD'}} type=ref,event=branch type=ref,event=pr - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} + type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || github.event_name == 'schedule' }} type=sha,enable=${{ github.event_name == 'push' }} - name: Set up Docker Buildx