diff --git a/tools/coder-cli/.gitlab-ci.yml b/tools/coder-cli/.gitlab-ci.yml index f8dfe78..d872056 100644 --- a/tools/coder-cli/.gitlab-ci.yml +++ b/tools/coder-cli/.gitlab-ci.yml @@ -6,6 +6,6 @@ build_cli: - echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY" - buildah push ${FQ_IMAGE_NAME}:cli rules: - - changes: - - tools/coder-cli/** - - if: '$CI_PIPELINE_SOURCE == "schedule"' \ No newline at end of file + - if: '$CI_COMMIT_BRANCH == "main" || $CI_PIPELINE_SOURCE == "schedule"' + when: always + - when: never \ No newline at end of file