From cc223e329bd566bb8d73488cd4c2e6177782494d Mon Sep 17 00:00:00 2001 From: ccbikai Date: Wed, 18 Sep 2024 20:31:20 +0800 Subject: [PATCH] feat: add main branch trigger to Docker workflow Enhance Docker image creation by automating the process on main branch pushes, reducing manual intervention and ensuring timely updates. --- .github/workflows/docker.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 69499ab..59297ff 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,8 +1,11 @@ # Docker build and push workflow name: Create and publish a Docker image -# Triggered by workflow_dispatch on: + push: + branches: + - main + # Triggered by workflow_dispatch workflow_dispatch: # Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.