From 38e4b937e3db994641acf51e9ac8d429c77eecc3 Mon Sep 17 00:00:00 2001 From: Quentin Kaiser Date: Sat, 20 Jan 2024 17:46:27 +0100 Subject: [PATCH] ci: do not build and push Docker images on pull requests Build the docker images only when pushing to main, there's no need to build those images in each and every pull request. Initial trigger for this was that dependabot does not possess the required privileges to push to our Docker registry, so there's no point building and pushing the image at that point. --- .github/workflows/build-publish-image.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/build-publish-image.yml b/.github/workflows/build-publish-image.yml index fd962eed74..1f44a9e402 100644 --- a/.github/workflows/build-publish-image.yml +++ b/.github/workflows/build-publish-image.yml @@ -4,9 +4,6 @@ on: push: branches: - main - pull_request: - branches: - - '**' env: DOCKER_IMAGE: ghcr.io/onekey-sec/unblob